summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD31
2 files changed, 19 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 712f382d268..e67fb5814c8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
pkgbase = librouteros-git
- pkgdesc = C library to communicate with network devices by MikroTik running their Linux-based operating system RouterOS.
+ pkgdesc = C library to communicate with network devices by MikroTik running RouterOS
pkgver = 20180719.c485c77
pkgrel = 1
url = https://github.com/octo/librouteros
arch = i686
arch = x86_64
+ arch = aarch64
arch = armv7h
license = ISC
makedepends = git
depends = gcc-libs
provides = librouteros
conflicts = librouteros
- source = git://github.com/octo/librouteros.git
+ source = git+https://github.com/octo/librouteros.git
sha256sums = SKIP
pkgname = librouteros-git
diff --git a/PKGBUILD b/PKGBUILD
index 386a820336d..8268b971089 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,34 @@
# 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')
+pkgdesc="C library to communicate with network devices by MikroTik running RouterOS"
+url="https://github.com/octo/librouteros"
+arch=('i686' 'x86_64' 'aarch64' 'armv7h')
license=('ISC')
makedepends=('git')
depends=('gcc-libs')
-source=("git://github.com/octo/librouteros.git")
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("git+https://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 -
+ cd "${srcdir}/${pkgname%-git}"
+ git log -1 --format='%cd.%h' --date=short | tr -d -
}
build() {
- cd "${srcdir}/${_pkgname}"
- autoreconf -i
- ./configure --prefix=/usr --sbindir=/usr/bin
- make
+ cd "${srcdir}/${pkgname%-git}"
+ autoreconf -i
+ ./configure --prefix=/usr --sbindir=/usr/bin
+ make
}
package() {
- cd "${srcdir}/${_pkgname}"
- make DESTDIR="${pkgdir}" install
+ cd "${srcdir}/${pkgname%-git}"
+ make DESTDIR="${pkgdir}" install
}
+
+# vim:set ts=2 sw=2 et: