summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Leidinger2017-07-25 19:56:08 +0200
committerOlaf Leidinger2017-07-25 19:56:08 +0200
commit6734108bc01098d5171074775ba113aad87c6599 (patch)
tree3aff86dd7474709feb6aafd918041076a2a17016
downloadaur-6734108bc01098d5171074775ba113aad87c6599.tar.gz
Initial version
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD39
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d2477f514b0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = hsakmt-roct
+ pkgdesc = Radeon Open Compute Thunk Interface
+ pkgver = 1.6.1.r0.a65d730
+ pkgrel = 1
+ url = https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface
+ arch = x86_64
+ license = X11/MIT
+ makedepends = git cmake gcc
+ provides = hsakmt-roct
+ conflicts = hsakmt-roct
+ source = git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#branch=roc-1.6.x
+ md5sums = SKIP
+
+pkgname = hsakmt-roct
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..76518b34d88
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Olaf Leidinger <oleid@mescharet.de>
+pkgname=hsakmt-roct
+pkgver=1.6.1.r0.a65d730
+pkgrel=1
+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=()
+makedepends=('git cmake gcc')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+source=('git+https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface.git#branch=roc-1.6.x')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${_gitdir}"
+
+# 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=/usr .. && \
+ make
+}
+
+package() {
+ cd "$srcdir/${_gitdir}/build"
+ make DESTDIR="$pkgdir/" install
+}