# Description: Portable Hardware Locality is a portable abstraction of hierarchical architectures
# URL: https://www.open-mpi.org/projects/hwloc/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libxml2 xorg-libpciaccess xorg-libx11

name=hwloc
version=2.9.2
release=1
source=(https://www.open-mpi.org/software/hwloc/v${version%.*}/downloads/${name}-${version}.tar.bz2)

build() {
  cd $name-$version

  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --sysconfdir=/etc \
    --enable-plugins \
    --disable-cairo
  make
  make DESTDIR=$PKG install
}
