summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 386a820336d7102ef48bbe6d7219432dcf1dd92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
}