summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8268b971089cf834462db815320e830fe48fa90c (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
34
# Maintainer: Josef Miegl <josef@miegl.cz>

pkgname=librouteros-git
pkgver=20180719.c485c77
pkgrel=1
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')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/octo/librouteros.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
  cd "${srcdir}/${pkgname%-git}"
  autoreconf -i
  ./configure --prefix=/usr --sbindir=/usr/bin
  make
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: