Refactoring repository...
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run

This commit is contained in:
CELESTIFYX
2025-01-14 19:02:06 +02:00
parent 876fa0988e
commit 08abac9e7d
33171 changed files with 4677 additions and 761 deletions

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Snigdha OS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,40 @@
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
pkgname=snigdhaos-bootloader-systemd
org=Snigdha-OS
branch='master'
_destination1="/etc/pacman.d/hooks"
_licensedir="/usr/share/snigdhaos/licenses/"
pkgver=1
pkgrel=1
pkgdesc="Snigdha OS Config File"
arch=('any')
url="https://snigdhaos.org/"
license=('MIT')
makedepends=()
depends=('systemd') # Add systemd as an example dependency
conflicts=('snigdhaos-bootloader-systemd-dev')
backup=()
provides=(
"$pkgname"
"${pkgname}-dev"
)
options=(
!strip
!emptydirs
)
source=("$pkgname.tar.gz")
sha256sums=('SKIP')
install=$pkgname.install
pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD 2>/dev/null || echo 0)" \
"$(git rev-parse --short HEAD 2>/dev/null || echo unknown)"
}
package() {
install -dm755 "$pkgdir/$_licensedir/$pkgname"
install -m644 "$srcdir/$pkgname/LICENSE" "$pkgdir/$_licensedir/$pkgname"
install -dm755 "$pkgdir/$_destination1"
cp -r "$srcdir/$pkgname/hooks/"* "$pkgdir/$_destination1/"
}

View File

@@ -0,0 +1,9 @@
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Updating systemd-boot
When = PostTransaction
Exec = /usr/bin/systemctl restart systemd-boot-update.service

View File

@@ -0,0 +1,15 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Path
Target = usr/src/*/dkms.conf
Target = usr/lib/modules/*/build/include/
Target = usr/lib/modules/*/modules.alias
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/modules/*/extramodules/*
[Action]
Description = Check for NVIDIA Config
When = PostTransaction
Exec = /usr/local/bin/snigdhaos-nvidia-dkms-check

View File

@@ -0,0 +1,18 @@
post_install() {
echo -e "\n All the files have been installed in /etc/pacman.d/hooks/ \n"
echo -e "Please ensure that the pacman hooks are enabled and configured correctly.\n"
echo -e "Run the following command to check the active pacman hooks:\n"
echo -e " ls -l /etc/pacman.d/hooks/\n"
echo -e "For further documentation, visit: https://snigdhaos.org/docs/hooks\n"
}
post_upgrade() {
post_install
echo -e "\nUpgrade Notes:\n"
echo -e "If you have customized any configuration files, make sure they are properly merged.\n"
echo -e "You can use the following command to compare and merge configuration changes:\n"
echo -e " pacdiff\n"
echo -e "After merging configurations, it's recommended to run:\n"
echo -e " sudo pacman -Syyu\n"
echo -e "This ensures that all changes are properly applied.\n"
}