summaryrefslogtreecommitdiff
path: root/libre/libclc-git
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-17 03:09:43 -0700
committerroot <root@rshg054.dnsready.net>2013-07-17 03:09:43 -0700
commit4098e719dcade91ea99edc15d13d70f93f8420d8 (patch)
treee805fabf987a7c2f2318f4eb058d765392cb04ee /libre/libclc-git
parentdee9f17b595ea903a982d31d1124b302bb17e2ff (diff)
Wed Jul 17 03:09:42 PDT 2013
Diffstat (limited to 'libre/libclc-git')
-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
+}