# Maintainer: pkgname=hwloc pkgver=2.9.2 pkgrel=1 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 options="!check" # fails on multiple arches with different tests subpackages=" $pkgname-dev $pkgname-doc $pkgname-bash-completion $pkgname-tools " source="https://www.open-mpi.org/software/hwloc/v${pkgver%.*}/downloads/hwloc-$pkgver.tar.bz2" build() { ./configure \ --prefix=/usr \ --sbindir=/usr/bin \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { make check } package() { make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/share/hwloc/hwloc-dump-hwdata.service } doc() { default_doc amove usr/share/hwloc/hwloc-ps.www amove usr/share/hwloc/hwloc*.dtd } tools() { pkgdesc="Portable hardware locality tools" amove usr/bin amove usr/share/applications/lstopo.desktop } sha512sums=" ed38bd608eac81d3182243f0b63c6da070be918fdd8c876ca35fd63cccb4e25684b28bb045d033c53cd7b53451795d28e05e0bd876a5a0231de06c76ace11fef hwloc-2.9.2.tar.bz2 "