summaryrefslogtreecommitdiff
path: root/extra/libclc
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-18 03:52:05 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-18 03:52:05 +0000
commit423ae5a5a1cd103d57b8cb52279533b3011f42d8 (patch)
tree0816754beb383cc3d3b45b501150f48ea42b1377 /extra/libclc
parent313040c7029fd0c36db63d7effbb974fd348389c (diff)
Sun May 18 03:42:25 UTC 2014
Diffstat (limited to 'extra/libclc')
-rw-r--r--extra/libclc/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/extra/libclc/PKGBUILD b/extra/libclc/PKGBUILD
new file mode 100644
index 000000000..af0335770
--- /dev/null
+++ b/extra/libclc/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 213031 2014-05-17 15:03:17Z lcarlier $
+# Maintainer: Laurent Carlier <lordheavym@gmail.com>
+
+pkgname=libclc
+pkgver=0.0.1.207685
+pkgrel=1
+pkgdesc="Library requirements of the OpenCL C programming language"
+arch=('i686' 'x86_64')
+url="http://libclc.llvm.org/"
+license=('MIT')
+makedepends=('clang' 'svn' 'python2')
+options=('staticlibs')
+source=('libclc::svn+http://llvm.org/svn/llvm-project/libclc/trunk#revision=207685')
+md5sums=(SKIP)
+
+build() {
+ cd libclc
+
+ sed -i 's/"python < $in >/sys.executable + " < $in >/g' configure.py
+# sed -i 's/python < $in >/python2 < $in >/g' configure.py
+
+ python2 ./configure.py --prefix=/usr
+ make
+}
+
+package() {
+ cd libclc
+
+ make install DESTDIR="$pkgdir"
+ install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+