From 7d3151cb257dcb2aeacf52bad5d96041677754a2 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Wed, 17 Jul 2013 05:18:32 -0300 Subject: libclc-git: adding pkg to libre repo, due which libcl-libre needed for the building --- libre/libclc-git/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 libre/libclc-git/PKGBUILD (limited to 'libre/libclc-git/PKGBUILD') 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 + +_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 +} -- cgit v1.2.3