tried writing a PKGBUILD
This commit is contained in:
26
PKGBUILD
Normal file
26
PKGBUILD
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
pkgname=alhp-pacman-hooks
|
||||||
|
pkgver=1.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Pacman hooks and scripts for checking ALHP build status"
|
||||||
|
arch=(any)
|
||||||
|
url='https://gitea.puchstein.bayern/mpuchstein/ALHP_PACMAN_HOOKS'
|
||||||
|
license=(GPLv3)
|
||||||
|
depends=(bash pacman jq curl)
|
||||||
|
source=("git+$url.git")
|
||||||
|
sha256sums=(SKIP)
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir"/ALHP_PACMAN_HOOKS
|
||||||
|
|
||||||
|
install -d "$pkgdir"/usr/lib/alhp-check
|
||||||
|
install -m755 scripts/alhp-check.sh "$pkgdir"/usr/lib/alhp-check/alhp-check
|
||||||
|
install -m755 scripts/alhp-pacman-hook.sh "$pkgdir"/usr/lib/alhp-check/alhp-pacman-hook
|
||||||
|
|
||||||
|
install -d "$pkgdir"/usr/bin
|
||||||
|
ln -s /usr/lib/alhp-check/alhp-check "$pkgdir"/usr/bin/alhp-check
|
||||||
|
|
||||||
|
install -d "$pkgdir"/etc/pacman.d/hooks
|
||||||
|
install -m644 hooks/alhp-install-check.hook "$pkgdir"/etc/pacman.d/hooks/
|
||||||
|
install -m644 hooks/alhp-upgrade-check.hook "$pkgdir"/etc/pacman.d/hooks/
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user