diff options
author | Hexhu | 2020-06-02 22:35:47 -0700 |
---|---|---|
committer | Hexhu | 2020-06-02 22:37:22 -0700 |
commit | 685e76eeedd95311a19d14273f856ec78fa1c502 (patch) | |
tree | 36bd6f7a2b5e2a99cec812de91af9d8f160d4e59 | |
download | aur-685e76eeedd95311a19d14273f856ec78fa1c502.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1a43d0a43686 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ndppd-git + pkgdesc = NDP Proxy Daemon, version 0.x (git version) + pkgver = 0.x + pkgrel = 1 + url = https://github.com/DanielAdolfsson/ndppd + arch = x86_64 + license = GPL3 + makedepends = git + provides = ndppd + conflicts = ndppd + backup = etc/ndppd.conf + source = git+https://github.com/DanielAdolfsson/ndppd + md5sums = SKIP + +pkgname = ndppd-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b806b69ae766 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Hexhu <i at hexhu.net> +# Contributor : Thermi <noel [at] familie-kuntze dot de> + +pkgname=ndppd-git +pkgver=0.x +pkgrel=1 +pkgdesc="NDP Proxy Daemon, version 0.x (git version)" +arch=('x86_64') +url="https://github.com/DanielAdolfsson/ndppd" +license=('GPL3') +depends=() +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +backup=('etc/ndppd.conf') +source=('git+https://github.com/DanielAdolfsson/ndppd') +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + +# pacmans version comparisons with later commits to the repo. The format +# VERSION='VER_NUM.rREV_NUM.HASH', or a relevant subset in case VER_NUM or HASH + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname%-git}" + + make DEBUG=1 PREFIX=/usr all +} + +package() { + cd "${srcdir}/${pkgname%-git}" + make PREFIX=/usr SBINDIR=/${pkgdir}/usr/bin DESTDIR=${pkgdir} install + install -D -m 644 "ndppd.service" "${pkgdir}/usr/lib/systemd/system/ndppd.service" + install -D -m 644 "ndppd.conf-dist" "${pkgdir}/etc/ndppd.conf" +} |