summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ecec0bd1f9d36866e8a9df30abb1b7a8c48ffac4 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Dazzy Ding <h(at)dazzyd.org>
# Contributor: Justin Wong <justin.w.xd(at)gmail(dot)com>

pkgname=npd6-git
_gitname=npd6
pkgver=r130.ad66f24
pkgrel=1
pkgdesc='A Linux daemon to provide a proxy service for IPv6 Neighbor Solcitations received by a gateway routing device.'
arch=('i686' 'x86_64' 'armv6h')
license=('GPL3')
url='http://npd6.github.io/npd6/'
conflicts=('npd6')
provides=('npd6')
source=("git://github.com/npd6/npd6.git"
        "npd6.service"
        "npd6.install")
md5sums=('SKIP'
         '319cc4f814a322e6aa9032c4d0f41dc6'
         'c9516ae0cefd3f29247f9971eb6eeced')
install=npd6.install

pkgver() {
    cd ${srcdir}/${_gitname}

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd ${srcdir}/${_gitname}

    make
}

package() {
    cd ${srcdir}

    install -D -m 644 npd6.service ${pkgdir}/usr/lib/systemd/system/npd6.service

    cd ${_gitname}

    install -D -m 755 npd6 ${pkgdir}/usr/bin/npd6
    install -D -m 644 etc/npd6.conf.sample ${pkgdir}/etc/npd6.conf.sample
    install -D -m 644 man/npd6.conf.5.gz ${pkgdir}/usr/share/man5/npd6.conf.5.gz
    install -D -m 644 man/npd6.8.gz ${pkgdir}/usr/share/man8/npd6.8.gz
}