mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-07 06:32:29 +01:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
# 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"
|
|
case "$CARCH" in
|
|
arm*) true;;
|
|
*) 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
|
|
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"
|