summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12018-03-10 23:35:55 +0800
committerChocobo12018-03-11 00:02:38 +0800
commit4405d485a69dfa37292b732dc62cdb50df3d3ce8 (patch)
tree00b484abd15a4076c710837509d52f5a54721432 /PKGBUILD
downloadaur-radvd-git.tar.gz
newpkg: radvd-git 2.17.r8.g7488976-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..78de05a4061
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=radvd-git
+pkgver=2.17.r8.g7488976
+pkgrel=1
+pkgdesc="IPv6 router advertisement daemon"
+arch=('i686' 'x86_64')
+url="http://www.litech.org/radvd/"
+license=('custom')
+depends=('glibc')
+makedepends=('git')
+checkdepends=('check')
+provides=('radvd')
+conflicts=('radvd')
+backup=('etc/radvd.conf')
+source=("git+https://github.com/reubenhwk/radvd.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "radvd"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "radvd"
+
+ ./autogen.sh
+ ./configure --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --sysconfdir="/etc" \
+ --with-pidfile="/run/radvd.pid" \
+ --with-check
+ make
+}
+
+check() {
+ cd "radvd"
+
+ make check
+}
+
+package() {
+ cd "radvd"
+
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 "radvd.conf.example" "$pkgdir/etc/radvd.conf"
+ install -Dm644 "COPYRIGHT" "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}