summaryrefslogtreecommitdiff
path: root/testing/libsmi/APKBUILD
blob: b9534c836da6b0430fb659ea0225547f821b697a (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
# Contributor: Mikolaj Chwalisz <chwalisz@tkn.tu-berlin.de>
# Maintainer: Mikolaj Chwalisz <chwalisz@tkn.tu-berlin.de>
pkgname=libsmi
pkgver="0.5.0"
pkgrel=0
pkgdesc="Library to access SMI management information"
url="https://www.ibr.cs.tu-bs.de/projects/libsmi/"
arch="all"
license="GPL-2.0-or-later BSD"
depends=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.ibr.cs.tu-bs.de/projects/libsmi/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--libexecdir=/usr/lib \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="4bf47483c06c9f07d1b10fbc74eddf11  libsmi-0.5.0.tar.gz"
sha256sums="f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3  libsmi-0.5.0.tar.gz"
sha512sums="be82e6b7054426e4634ac9d90467b89a51a9c836273c9d516f07ff3cec3a8dcc8b3bb0e0396d5facec3d9c952b17fb67f24ff2d3959e7e5cf9eced72023a0708  libsmi-0.5.0.tar.gz"