summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 16 insertions, 15 deletions
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: