aboutsummaryrefslogtreecommitdiffstats
path: root/community/iprutils/APKBUILD
blob: c6c9bdd325be7e34d589f62b8f71613155366a6e (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
35
36
37
38
39
40
41
42
# Maintainer: Breno Leitao <breno.leitao@gmail.com>
pkgname=iprutils
pkgver=2.4.16
pkgrel=1
pkgdesc="user space tools required by the ipr device driver"
url="https://github.com/bjking1/iprutils"
arch="ppc64le"
license="CPL-1.0"
makedepends="autoconf automake libtool linux-headers m4 ncurses-dev zlib-dev"
subpackages="$pkgname-doc"
_pkgver=${pkgver//./-}
source="$pkgname-$pkgver.tar.gz::https://github.com/bjking1/iprutils/archive/rel-$_pkgver.tar.gz"

builddir="$srcdir"/iprutils-rel-$_pkgver

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--without-systemd
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="8d4d6adbdd91e95842415b1595131ffe029052a816e24dcd13538ec898cf720593411b3ce653ba8586c37ef377677881169c01a299d0a6bf3771e0975a040306  iprutils-2.4.16.tar.gz"