diff options
author | Antonin Dach | 2021-04-04 23:21:06 +0200 |
---|---|---|
committer | Antonin Dach | 2021-04-04 23:21:06 +0200 |
commit | 13d1efdfaa2cfa101d40d84bf5f65c9da78746a7 (patch) | |
tree | c29812d4c0cc1ee0cd8b555af3dac5bf6d0d6c48 | |
parent | 7269113cc6f5a4f30fbca333d479ae77bb511728 (diff) | |
download | aur-13d1efdfaa2cfa101d40d84bf5f65c9da78746a7.tar.gz |
post install hook
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | librewolf-comment-out-cfg-hook.install | 7 |
3 files changed, 11 insertions, 4 deletions
@@ -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 @@ -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" diff --git a/librewolf-comment-out-cfg-hook.install b/librewolf-comment-out-cfg-hook.install new file mode 100644 index 000000000000..209576ef0046 --- /dev/null +++ b/librewolf-comment-out-cfg-hook.install @@ -0,0 +1,7 @@ +post_install() { + /usr/share/libalpm/scripts/librewolf-cfg-comment-out-values.sh +} + +#post_upgrade() { +# post_install +#} |