summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Miegl2018-07-23 14:37:25 +0200
committerJosef Miegl2018-07-23 14:37:25 +0200
commitba530fe00a59cb8533dac427f655ef5fb0942947 (patch)
treedd523cacfd00dcfcb62030fe1ae89befaf7ca5fb
downloadaur-ba530fe00a59cb8533dac427f655ef5fb0942947.tar.gz
librouteros-git release
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..712f382d268
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = librouteros-git
+ pkgdesc = C library to communicate with network devices by MikroTik running their Linux-based operating system RouterOS.
+ pkgver = 20180719.c485c77
+ pkgrel = 1
+ url = https://github.com/octo/librouteros
+ arch = i686
+ arch = x86_64
+ arch = armv7h
+ license = ISC
+ makedepends = git
+ depends = gcc-libs
+ provides = librouteros
+ conflicts = librouteros
+ source = git://github.com/octo/librouteros.git
+ sha256sums = SKIP
+
+pkgname = librouteros-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..386a820336d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Josef Miegl <josef@miegl.cz>
+
+pkgname=librouteros-git
+_pkgname=librouteros
+pkgver=20180719.c485c77
+pkgrel=1
+pkgdesc='C library to communicate with network devices by MikroTik running their Linux-based operating system RouterOS.'
+url='https://github.com/octo/librouteros'
+arch=('i686' 'x86_64' 'armv7h')
+license=('ISC')
+makedepends=('git')
+depends=('gcc-libs')
+source=("git://github.com/octo/librouteros.git")
+sha256sums=('SKIP')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ autoreconf -i
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ make DESTDIR="${pkgdir}" install
+}