summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Leidinger2017-07-25 21:44:06 +0200
committerOlaf Leidinger2017-07-25 21:44:06 +0200
commit88af815d8c29732bc43a91271bfa2ed6648bea3d (patch)
tree503085bf0c829ee633e3156cd010dd15f56eeb21
parent6734108bc01098d5171074775ba113aad87c6599 (diff)
downloadaur-88af815d8c29732bc43a91271bfa2ed6648bea3d.tar.gz
Cleanup + deps
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD18
2 files changed, 17 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d2477f514b0..470cae43194 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = hsakmt-roct
pkgdesc = Radeon Open Compute Thunk Interface
pkgver = 1.6.1.r0.a65d730
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface
arch = x86_64
license = X11/MIT
makedepends = git cmake gcc
+ depends = pciutils
provides = hsakmt-roct
conflicts = hsakmt-roct
source = git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#branch=roc-1.6.x
diff --git a/PKGBUILD b/PKGBUILD
index 76518b34d88..bce1434b527 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Olaf Leidinger <oleid@mescharet.de>
pkgname=hsakmt-roct
pkgver=1.6.1.r0.a65d730
-pkgrel=1
+pkgrel=2
pkgdesc="Radeon Open Compute Thunk Interface"
_gitdir=ROCT-Thunk-Interface
arch=('x86_64')
url="https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface"
license=('X11/MIT')
groups=()
-depends=()
+depends=(pciutils)
makedepends=('git cmake gcc')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
@@ -29,11 +29,23 @@ build() {
cd "$srcdir/${_gitdir}"
mkdir -p build && \
cd build && \
- cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
+ cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm .. && \
make
}
package() {
cd "$srcdir/${_gitdir}/build"
make DESTDIR="$pkgdir/" install
+
+ # additional links
+ mkdir -p "$pkgdir/usr/include"
+ ln -s opt/rocm/libhsakmt/include/libhsakmt "$pkgdir/usr/include"
+
+ # ldconfig
+ mkdir -p "$pkgdir/etc/ld.so.conf.d"
+ echo "/opt/rocm/libhsakmt/lib" > "$pkgdir/etc/ld.so.conf.d/libhsakmt.conf"
+
+ # cleanup
+ rm -Rf "$pkgdir/opt/rocm/include"
+ rm -Rf "$pkgdir/opt/rocm/lib"
}