summaryrefslogtreecommitdiff
path: root/libre/libclc-git/PKGBUILD
diff options
context:
space:
mode:
authorShackra Sislock <jorgean@lavabit.com>2013-07-28 00:05:17 -0600
committerShackra Sislock <jorgean@lavabit.com>2013-07-28 00:05:17 -0600
commit24a60eb2731228e05ffa0ed9dade0d6b56f9785f (patch)
tree5968c5be0899eeba7cbc294a12b39e165a7be4a7 /libre/libclc-git/PKGBUILD
parent6785d5420eb83d9990842bd812458ad862c0d9e7 (diff)
parent946d64a4f98b36d70189c65010e666a597ad7aab (diff)
downloadabslibre-24a60eb2731228e05ffa0ed9dade0d6b56f9785f.tar.gz
abslibre-24a60eb2731228e05ffa0ed9dade0d6b56f9785f.tar.bz2
abslibre-24a60eb2731228e05ffa0ed9dade0d6b56f9785f.zip
merging...
Diffstat (limited to 'libre/libclc-git/PKGBUILD')
-rw-r--r--libre/libclc-git/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/libclc-git/PKGBUILD b/libre/libclc-git/PKGBUILD
new file mode 100644
index 000000000..432751146
--- /dev/null
+++ b/libre/libclc-git/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+_pkgname=libclc
+pkgname=$_pkgname-git
+pkgver=$(LC_ALL=C date -u +%Y%m%d)
+pkgrel=1
+arch=(
+ mips64el
+ x86_64
+ i686
+)
+pkgdesc='Library requirements of the OpenCL C programming language.'
+url=(
+ http://cgit.freedesktop.org/~tstellar/$_pkgname
+ http://libclc.llvm.org/
+)
+license=MIT
+depends=clang
+makedepends=(
+ git
+ python2
+)
+provides=($_pkgname)
+conflicts=$_pkgname
+source=git://people.freedesktop.org/~tstellar/$_pkgname.git
+sha512sums=SKIP
+
+prepare() {
+ sed -i 's|/usr/bin/python|/usr/bin/python2|g;
+ ' $srcdir/$_pkgname/{configure,build/ninja_syntax}.py
+}
+
+build() {
+ cd $srcdir/$_pkgname
+ ./configure.py --prefix=/usr
+ make
+}
+
+package() {
+ cd $srcdir/$_pkgname
+ make DESTDIR=$pkgdir install
+ install -vDm644 LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}