summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJakub Okoński2018-12-21 18:03:38 +0100
committerJakub Okoński2018-12-21 18:03:38 +0100
commitea9b7571482dd9cbe1b10af11050a781d22d9a45 (patch)
tree2f8e9d64fe22866cc1811051b7d275fc9c86889b /PKGBUILD
downloadaur-ea9b7571482dd9cbe1b10af11050a781d22d9a45.tar.gz
Release 1.0.0-1bb0cc7
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e63163a84e2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Jakub Okoński <jakub@okonski.org>
+pkgname=rocminfo
+pkgver=1.0.0.1bb0cc7
+pkgrel=1
+pkgdesc="ROCm info tools - rocm_agent_enumerator"
+arch=(x86_64)
+url="https://github.com/RadeonOpenCompute/rocminfo"
+license=('unknown')
+makedepends=(git cmake ninja)
+depends=(pciutils)
+source=("git+https://github.com/RadeonOpenCompute/rocminfo.git#commit=1bb0ccc731f772bb1a553e37b41d06eb0a684926")
+md5sums=("SKIP")
+
+build() {
+ mkdir -p "$srcdir/build"
+ cd "$srcdir/build"
+
+ # TODO: fix rocminfo binary, it contains references to $srcdir
+
+ cmake -DCMAKE_PREFIX_PATH=/opt/rocm \
+ -DCMAKE_INSTALL_PREFIX="$pkgdir/opt/rocm" \
+ -G Ninja \
+ "$srcdir/rocminfo"
+ ninja
+}
+
+package() {
+ ninja -C "$srcdir/build" install
+}
+