diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-07-17 05:18:32 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-07-17 05:18:32 -0300 |
commit | 7d3151cb257dcb2aeacf52bad5d96041677754a2 (patch) | |
tree | 545d166d40ca8e09c6ce96e8b9a72ab1fc141b0b /libre | |
parent | fa7ae387a0aab9fe8fe9c9dabf6500076af83673 (diff) |
libclc-git: adding pkg to libre repo, due which libcl-libre needed for the building
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 +} |