summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86bebd107fc6ab5410277913fc774efcd000fdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Caleb Maclennan <caleb@alerque.com>

pkgname=gitzone
pkgver=1.1
pkgrel=2
url=https://github.com/dyne/gitzone
pkgdesc='git-based zone management tool for static and dynamic domains'
arch=('any')
license=('AGPL3')
depends=('perl' 'bind')
source=("$pkgname-$pkgver::https://github.com/dyne/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('446599b3d1cc305be3e160dc39211e4ef35d30f0c8fcf0780cb9e21e652a6c20')
backup=('etc/gitzone.conf')

package() {
    cd "$srcdir/$pkgname-$pkgver"
    find -type f -execdir sed -i 's#libexec/gitzone#share/gitzone/libexec#g' {} \;
    find -type f -execdir sed -i 's#var/bind#var/named#g' {} \;
    find -type f -execdir sed -i 's#var/cache/bind#var/cache/named#g' {} \;
    make PREFIX="$pkgdir"/usr install
    install -Dm 0644 etc/gitzone.conf "$pkgdir"/etc/gitzone.conf
}