summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04d9667963190db68a205eacce9567f71abc7e01 (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: Dominik opyd <d.opyd@oad.earth>

pkgname=forge-server-hooks
pkgver=1.0.0
pkgrel=1
pkgdesc="Pacman hooks related to forge server."
arch=('any')
license=('MIT')
source=('server-mods.hook'
        'server-restart.hook')
md5sums=('b5aa54ebdcc4a84832a39f7e00338c5c'
         'b9534116df8e0fac07e602c7285f0d9f')

provides=(forge-hooks)
replaces=(forge-hooks)
conflicts=(forge-hooks)

package() {
	install -m 0755 -d $pkgdir/usr/share/libalpm/hooks

	install -Dm 0644 $srcdir/server-mods.hook $pkgdir/usr/share/libalpm/hooks/forge-server-mods.hook
  install -Dm 0644 $srcdir/server-restart.hook $pkgdir/usr/share/libalpm/hooks/forge-server-restart.hook

  sed -i 's/$srvname/forge/' $pkgdir/usr/share/libalpm/hooks/forge-server-mods.hook
  sed -i 's/$srvname/forge/' $pkgdir/usr/share/libalpm/hooks/forge-server-restart.hook
}