~freed00m/librewolf-comment-out-cfg-hook

13d1efdfaa2cfa101d40d84bf5f65c9da78746a7 — Antonin Dach 3 years ago 7269113
post install hook
3 files changed, 11 insertions(+), 4 deletions(-)

M .SRCINFO
M PKGBUILD
A librewolf-comment-out-cfg-hook.install
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 librewolf-comment-out-cfg-hook.install => librewolf-comment-out-cfg-hook.install +7 -0
@@ 0,0 1,7 @@
post_install() {
	/usr/share/libalpm/scripts/librewolf-cfg-comment-out-values.sh
}

#post_upgrade() {
#	post_install
#}