diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/libclc-git/PKGBUILD | 43 |
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 +} |