summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Leidinger2018-06-07 01:44:09 +0200
committerOlaf Leidinger2018-06-07 01:44:09 +0200
commit07fd814ecb4211af63237fe0f565b93924831ee8 (patch)
tree66702017878ac86eb006fb75836a1da15965343a
parentec0c09c51cf36d0baf8d4dd4ff907a299dac0531 (diff)
downloadaur-07fd814ecb4211af63237fe0f565b93924831ee8.tar.gz
Install missing headers
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD18
2 files changed, 15 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e1ffd4109bb..36cdb8528b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Wed Jun 6 22:06:22 UTC 2018
pkgbase = hsakmt-roct
pkgdesc = Radeon Open Compute Thunk Interface
pkgver = 1.8.0.r0.e3dd067
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface
arch = x86_64
license = X11/MIT
diff --git a/PKGBUILD b/PKGBUILD
index 3320a0ff66f..d2643273df5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Olaf Leidinger <oleid@mescharet.de>
pkgname=hsakmt-roct
pkgver=1.8.0.r0.e3dd067
-pkgrel=1
+pkgrel=2
pkgdesc="Radeon Open Compute Thunk Interface"
_gitdir=ROCT-Thunk-Interface
arch=('x86_64')
@@ -19,15 +19,15 @@ source=('git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#branc
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${_gitdir}"
+ cd "$srcdir/${_gitdir}"
-# Git, tags available
+ # Git, tags available
printf "%s" "$(git describe --long | sed -e 's:roc-::g' -e 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${_gitdir}"
-
+
mkdir -p build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm .. && \
@@ -46,6 +46,16 @@ package() {
mkdir -p "$pkgdir/etc/ld.so.conf.d"
echo "/opt/rocm/libhsakmt/lib" > "$pkgdir/etc/ld.so.conf.d/libhsakmt.conf"
+ ############
+ # dev-parts
+
+ # pkg-build config file(s)
+ find `pwd` -name "*.pc" -exec install -D '{}' $pkgdir/opt/rocm/libhsakmt ';'
+
+ # headers, reconstruct tree
+ cd "$srcdir/${_gitdir}/include"
+ find . -name '*.h' -exec install -D '{}' $pkgdir/opt/rocm/libhsakmt/include/libhsakmt/{} ';'
+
# cleanup
rm -Rf "$pkgdir/opt/rocm/include"
rm -Rf "$pkgdir/opt/rocm/lib"