Add PKGBUILD+ Update PKGBUILD

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-16 23:37:55 +05:30
parent 845081609f
commit a0a7eff6ec
4 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
# 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=()
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}
}

View File

@@ -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
}

View File

@@ -22,6 +22,10 @@ provides=(
'${pkgname}' '${pkgname}'
'${pkgname}-dev' '${pkgname}-dev'
) )
options=(
!strip
!emptydirs
)
source=("$pkgname.tar.gz") source=("$pkgname.tar.gz")
sha256sums=( sha256sums=(
'SKIP' 'SKIP'

View File

@@ -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
}