summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 345908ed27a4be0482d885f6671f7706a7e4e697 (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: Kevin MacMartin <prurigro at gmail dot com>

pkgname=cjdnsify
pkgver=20140717.r6.bc354af
pkgrel=1
pkgdesc="Limit network access of bind-compatible programs to the local cjdns network"
url="https://github.com/prurigro/${pkgname}"
license=('GPL')
depends=('bash' 'cjdns-git' 'force_bind')
makedepends=('git')
arch=('any')
backup=("etc/default/${pkgname}")

source=("git://github.com/prurigro/${pkgname}.git#branch=master")
sha512sums=('SKIP')

pkgver() {
    cd $pkgname
    printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd $pkgname
    install -Dm755 $pkgname "${pkgdir}/usr/bin/${pkgname}"
    install -Dm644 ${pkgname}.conf "${pkgdir}/etc/default/${pkgname}"
}