From a0a7eff6ec718f9e87cecd39b822762250b2a4c2 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Tue, 16 Apr 2024 23:37:55 +0530 Subject: [PATCH] Add PKGBUILD+ Update PKGBUILD --- common/snigdhaos-bootloader-grub/PKGBUILD | 45 +++++++++++++++++++ .../snigdhaos-bootloader-grub.install | 7 +++ common/snigdhaos-bootloader-systemd/PKGBUILD | 4 ++ .../snigdhaos-bootloader-systemd.install | 7 +++ 4 files changed, 63 insertions(+) create mode 100644 common/snigdhaos-bootloader-grub/PKGBUILD create mode 100644 common/snigdhaos-bootloader-grub/snigdhaos-bootloader-grub.install diff --git a/common/snigdhaos-bootloader-grub/PKGBUILD b/common/snigdhaos-bootloader-grub/PKGBUILD new file mode 100644 index 00000000..40259b25 --- /dev/null +++ b/common/snigdhaos-bootloader-grub/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Eshan Roy +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=() +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)" "$(git rev-parse --short HEAD)" +} + +package(){ + install -dm755 "$pkgdir/$_licensedir/$pkgname" + install -m644 "$srcdir/$pkgname/LICENSE" "$pkdir/$_licensedir/$pkgname" + + install -dm755 "$pkgdir/$_destination1" + cp -r ${srcdir}/${pkgname}/${_destination1}/* ${pkgdir}/${_destination1} +} \ No newline at end of file diff --git a/common/snigdhaos-bootloader-grub/snigdhaos-bootloader-grub.install b/common/snigdhaos-bootloader-grub/snigdhaos-bootloader-grub.install new file mode 100644 index 00000000..3737c5fc --- /dev/null +++ b/common/snigdhaos-bootloader-grub/snigdhaos-bootloader-grub.install @@ -0,0 +1,7 @@ +post_install(){ + echo -e "\n All the files has been installed on /etc/pacman.d/hooks/ \n" +} + +post_upgrade(){ + post_install +} \ No newline at end of file diff --git a/common/snigdhaos-bootloader-systemd/PKGBUILD b/common/snigdhaos-bootloader-systemd/PKGBUILD index b3f47822..acd95579 100644 --- a/common/snigdhaos-bootloader-systemd/PKGBUILD +++ b/common/snigdhaos-bootloader-systemd/PKGBUILD @@ -22,6 +22,10 @@ provides=( '${pkgname}' '${pkgname}-dev' ) +options=( + !strip + !emptydirs +) source=("$pkgname.tar.gz") sha256sums=( 'SKIP' diff --git a/common/snigdhaos-bootloader-systemd/snigdhaos-bootloader-systemd.install b/common/snigdhaos-bootloader-systemd/snigdhaos-bootloader-systemd.install index e69de29b..3737c5fc 100644 --- a/common/snigdhaos-bootloader-systemd/snigdhaos-bootloader-systemd.install +++ b/common/snigdhaos-bootloader-systemd/snigdhaos-bootloader-systemd.install @@ -0,0 +1,7 @@ +post_install(){ + echo -e "\n All the files has been installed on /etc/pacman.d/hooks/ \n" +} + +post_upgrade(){ + post_install +} \ No newline at end of file