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-grub
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=('grub') # Example dependency
conflicts=('snigdhaos-bootloader-grub-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,15 @@
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = grub
Target = amd-ucode
Target = intel-ucode
Target = linux
Target = linux-lts*
Target = linux-zen*
[Action]
Description = Executing grub-install
When = PostTransaction
Exec = /usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=SnigdhaOS

View File

@@ -0,0 +1,15 @@
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = grub
Target = amd-ucode
Target = intel-ucode
Target = linux
Target = linux-lts*
Target = linux-zen*
[Action]
Description = Executing grub-mkconfig
When = PostTransaction
Exec = /bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"

View File

@@ -0,0 +1,14 @@
post_install() {
echo -e "\nAll the files have been successfully installed in /etc/pacman.d/hooks/\n"
echo -e "To verify the installed hooks, you can use the following command:\n"
echo -e " ls -l /etc/pacman.d/hooks/\n"
echo -e "Make sure your pacman hooks are functioning as expected for optimal performance.\n"
}
post_upgrade() {
echo -e "\nUpgrade successful.\n"
post_install
echo -e "If you have customized configurations, ensure they are up-to-date. You can use:\n"
echo -e " pacdiff\n"
echo -e "To review and merge configuration changes.\n"
}