summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD51
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aad96bd5859
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = radvd-git
+ pkgdesc = IPv6 router advertisement daemon
+ pkgver = 2.17.r8.g7488976
+ pkgrel = 1
+ url = http://www.litech.org/radvd/
+ arch = i686
+ arch = x86_64
+ license = custom
+ checkdepends = check
+ makedepends = git
+ depends = glibc
+ provides = radvd
+ conflicts = radvd
+ backup = etc/radvd.conf
+ source = git+https://github.com/reubenhwk/radvd.git
+ sha256sums = SKIP
+
+pkgname = radvd-git
+
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"
+}