M .SRCINFO => .SRCINFO +2 -1
@@ 1,8 1,9 @@
pkgbase = librewolf-comment-out-cfg-hook
pkgdesc = Comment out custom cfg values via pacman hook
pkgver = 1
- pkgrel = 1
+ pkgrel = 2
url = https://git.sr.ht/~freed00m/librewolf-comment-out-cfg-hook
+ install = librewolf-comment-out-cfg-hook.install
arch = x86_64
arch = aarch64
license = MIT
M PKGBUILD => PKGBUILD +2 -3
@@ 2,19 2,18 @@
pkgname=librewolf-comment-out-cfg-hook
pkgver=1
-pkgrel=1
+pkgrel=2
pkgdesc='Comment out custom cfg values via pacman hook'
arch=(x86_64 aarch64)
url='https://git.sr.ht/~freed00m/librewolf-comment-out-cfg-hook'
license=('MIT')
+install="${pkgname}.install"
depends=(librewolf)
package() {
mkdir -p "$pkgdir/usr/share/libalpm/scripts/"
mkdir -p "$pkgdir/usr/share/libalpm/hooks/"
- cd "$srcdir"
-
cp ../librewolf-cfg-comment-out-values.hook "$pkgdir/usr/share/libalpm/hooks/librewolf-cfg-comment-out-values.hook"
cp ../librewolf-cfg-uncomment-out-values.hook "$pkgdir/usr/share/libalpm/hooks/librewolf-cfg-uncomment-out-values.hook"
cp ../librewolf-cfg-comment-out-values.sh "$pkgdir/usr/share/libalpm/scripts/librewolf-cfg-comment-out-values.sh"
A => +7 -0
@@ 0,0 1,7 @@
post_install() {
/usr/share/libalpm/scripts/librewolf-cfg-comment-out-values.sh
}
#post_upgrade() {
# post_install
#}