From 13d1efdfaa2cfa101d40d84bf5f65c9da78746a7 Mon Sep 17 00:00:00 2001 From: Antonin Dach Date: Sun, 4 Apr 2021 23:21:06 +0200 Subject: [PATCH] post install hook --- .SRCINFO | 3 ++- PKGBUILD | 5 ++--- librewolf-comment-out-cfg-hook.install | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 librewolf-comment-out-cfg-hook.install diff --git a/.SRCINFO b/.SRCINFO index e575542..51474f9 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD index 4ce613c..ae03393 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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 0000000..209576e --- /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 +#} -- 2.45.2