blob: d4fe04381927f423728d074c63fbfb4d916398e5 (
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
|
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=hwloc
pkgver=1.11.5
pkgrel=0
pkgdesc="Portable abstraction of hierarchical hardware architectures"
url="https://www.open-mpi.org/"
arch="all"
license="BSD"
depends=""
makedepends="cairo-dev eudev-dev libxml2-dev ncurses-dev"
case "$CARCH" in
x86*) makedepends="$makedepends numactl-dev";;
esac
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 \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
_tools() {
pkgdesc="Portable hardware locality tools"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr || return 1
}
md5sums="96c34136ff416d2b13a7821c27477bed hwloc-1.11.5.tar.bz2"
sha256sums="95d80286dfe658a3f79e2ac90698782bb36e5504f4bac1bba2394ba14dbbad24 hwloc-1.11.5.tar.bz2"
sha512sums="f32715d0b19400fa0cc02d4dd7b789d740f7bf16f16dbb247f6124adb41b452673139b12936d21259d6bc0dec4988260e6c3d00b3b145f410960e868ae96e1c6 hwloc-1.11.5.tar.bz2"
|