summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8ddfc334cc4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
+
+pkgname=cub
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="A flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming."
+arch=('any')
+url='http://nvlabs.github.com/cub/'
+license=('New BSD')
+makedepends=('git')
+
+_dir=${pkgname}
+source=("${_dir}"::"git+https://github.com/NVlabs/cub.git"#branch=${pkgver}
+ "cub.pc")
+sha1sums=('SKIP'
+ 'e35f7b34520e7b8f540b446da69c71c200a3324c')
+
+package() {
+ cd ${srcdir}
+
+ # Install headers
+ install -d "${pkgdir}/usr/include/cub"
+ cp -r "${_dir}/cub" "${pkgdir}/usr/include"
+
+ # Install pkg-config file
+ install -Dm644 cub.pc "${pkgdir}"/usr/lib/pkgconfig/cub.pc
+}