summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Röthke2017-02-02 16:37:14 +0100
committerMarcel Röthke2017-02-02 16:37:14 +0100
commitcac0107bd31ccfdebaa219edee9f746a11fb0dcc (patch)
tree44cfe5e416b3ff8d8464eff0e1f11c7830129271
downloadaur-cac0107bd31ccfdebaa219edee9f746a11fb0dcc.tar.gz
Initial upload: rtrlib-git r556.1caa14e-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..062b10b0768
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Thu Feb 2 15:37:14 UTC 2017
+pkgbase = rtrlib-git
+ pkgdesc = RPKI-RTR client library
+ pkgver = r556.1caa14e
+ pkgrel = 1
+ url = https://github.com/rtrlib/rtrlib
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = cmake
+ depends = libssh
+ conflicts = rtrlib
+ source = git+https://github.com/rtrlib/rtrlib.git
+ md5sums = SKIP
+
+pkgname = rtrlib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..79d4eeebad7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Marcel Röthke <marce.roethke@haw-hamburg.de>
+
+pkgname=rtrlib-git
+pkgver=r556.1caa14e
+pkgrel=1
+pkgdesc="RPKI-RTR client library"
+arch=(x86_64 i686)
+url="https://github.com/rtrlib/rtrlib"
+license=('MIT')
+depends=(libssh)
+makedepends=(cmake)
+conflicts=(rtrlib)
+options=()
+source=("git+https://github.com/rtrlib/rtrlib.git")
+md5sums=(SKIP)
+
+pkgver() {
+ cd ${srcdir}/${pkgname%-git}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd ${srcdir}/${pkgname%-git}
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR:STRING=lib \
+ .
+ make rtrlib
+}
+
+package() {
+ cd ${srcdir}/${pkgname%-git}
+ make DESTDIR="${pkgdir}" install
+}