aboutsummaryrefslogtreecommitdiffstats
path: root/testing/numactl/APKBUILD
blob: 2408de5a34f80f22aa4fbb27b3ae58592ed9dc21 (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
43
44
45
46
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=numactl
pkgver=2.0.11
pkgrel=0
pkgdesc="Simple NUMA policy support"
url="http://oss.sgi.com/projects/libnuma/"
arch="x86 x86_64"
license="GPL2 LGPL2"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools:_tools"
source="ftp://oss.sgi.com/www/projects/libnuma/download/$pkgname-$pkgver.tar.gz
	musl.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

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

	# provided by linux man-pages
	rm -r "$pkgdir"/usr/share/man/man2
}

_tools() {
	pkgdesc="NUMA policy control tools"

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr || return 1
}

md5sums="d3bc88b7ddb9f06d60898f4816ae9127  numactl-2.0.11.tar.gz
1a9aceeb5ac9c933afc87ee614172c16  musl.patch"
sha256sums="450c091235f891ee874a8651b179c30f57a1391ca5c4673354740ba65e527861  numactl-2.0.11.tar.gz
1b8803d47ece79b5411b4d442e55f45e88b106ac2ac0b53001e1bcfabc060b20  musl.patch"
sha512sums="1969d7ee0ff3de0d6f1fa42ec089a17cdb3f92cb35d453b8f8b2eec49724c43787ecbd213357013a8f2500a260b0df9844d515815ca3a0376314a0eed050a0d4  numactl-2.0.11.tar.gz
c24affa5a8a8ea83d7f0ee384dc0629e17a5c4201357132f770f894ad4236772116d96d8389d54fb99095af40d1ccbffc3170b5fb9cc88cfca39179f50bee9c9  musl.patch"