blob: 59e883760d88eb51d46a97fbe9dfcc23a5142281 (
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: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=hwloc
pkgver=1.11.9
pkgrel=0
pkgdesc="Portable abstraction of hierarchical hardware architectures"
url="https://www.open-mpi.org/"
arch="all"
license="BSD-3-Clause"
makedepends="cairo-dev eudev-dev libxml2-dev ncurses-dev"
if [ "$CARCH" != "armhf" ]; then
makedepends="$makedepends numactl-dev"
fi
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools:_tools"
source="https://www.open-mpi.org/software/hwloc/v${pkgver%.*}/downloads/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
make -C "$builddir" check
}
package() {
make -C "$builddir" DESTDIR="$pkgdir" install
}
_tools() {
pkgdesc="Portable hardware locality tools"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}
sha512sums="59198b460e2acb9ff0f8b06a86116a2ab67515e92035d3ecc1619ddbe42c7dd8991acab9cfe9c7130517238552aa570e3a51d135773ba34fbe343f2dfe48d956 hwloc-1.11.9.tar.bz2"
|