aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2016-11-12 13:59:36 -0500
committerDaniel Sabogal <dsabogalcc@gmail.com>2016-11-15 15:32:50 -0500
commit35bf8612159af7f109a0ef263381c84614f38086 (patch)
tree973c1a5475440c52bf22aac75393d8a35b20ae52
parentfa0240a68092da89b4bbcc3a27410b331e4942c9 (diff)
downloadaports-35bf8612159af7f109a0ef263381c84614f38086.tar.bz2
aports-35bf8612159af7f109a0ef263381c84614f38086.tar.xz
testing/hwloc: new aport
https://www.open-mpi.org/ Portable abstraction of hierarchical hardware architectures
-rw-r--r--testing/hwloc/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/hwloc/APKBUILD b/testing/hwloc/APKBUILD
new file mode 100644
index 0000000000..d9c4d91438
--- /dev/null
+++ b/testing/hwloc/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
+# Maintainer:
+pkgname=hwloc
+pkgver=1.11.4
+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 \
+ --mandir=/usr/share/man \
+ || 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
+ mv "$pkgdir"/usr/sbin "$subpkgdir"/usr || return 1
+}
+
+md5sums="840520dd09e391ef4b2268ccb9ac73fa hwloc-1.11.4.tar.bz2"
+sha256sums="fdc59d06c1ddedb0fa41039bb84cb406f0570b6e66223c13a60077831d36e038 hwloc-1.11.4.tar.bz2"
+sha512sums="7390c1820ad489fe62615889aff5203301cef5b1df8da44210df9e6945a3de95c259165b78fce754c40af24a180fe916e04c19ba1439e92061e5e8d05dc94b27 hwloc-1.11.4.tar.bz2"