mirror of
https://github.com/Snigdha-OS/snigdhaos-pkgbuilds.git
synced 2025-09-21 03:55:02 +02:00
Add PKGBUILD+ Update PKGBUILD
This commit is contained in:
45
common/snigdhaos-bootloader-grub/PKGBUILD
Normal file
45
common/snigdhaos-bootloader-grub/PKGBUILD
Normal 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}
|
||||
}
|
@@ -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
|
||||
}
|
@@ -22,6 +22,10 @@ provides=(
|
||||
'${pkgname}'
|
||||
'${pkgname}-dev'
|
||||
)
|
||||
options=(
|
||||
!strip
|
||||
!emptydirs
|
||||
)
|
||||
source=("$pkgname.tar.gz")
|
||||
sha256sums=(
|
||||
'SKIP'
|
||||
|
@@ -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
|
||||
}
|
Reference in New Issue
Block a user