aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75806ad0a8520c0565a6aca396852e2faba3aa33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: AntonĂ­n Dach <dach@protonmail.com>

pkgname=librewolf-comment-out-cfg-hook
pkgver=1
pkgrel=5
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')
depends=(librewolf)

package() {
  mkdir -p "$pkgdir/usr/share/libalpm/scripts/"
  mkdir -p "$pkgdir/usr/share/libalpm/hooks/"

  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"
  cp ../librewolf-cfg-uncomment-out-values.sh "$pkgdir/usr/share/libalpm/scripts/librewolf-cfg-uncomment-out-values.sh"

  # Set executable afterwards
  chmod +x "$pkgdir/usr/share/libalpm/scripts/librewolf-cfg-uncomment-out-values.sh"
  chmod +x "$pkgdir/usr/share/libalpm/scripts/librewolf-cfg-comment-out-values.sh"
}

# vim: ts=2 sw=2 et: