Date: Saturday, May 7, 2016 @ 21:09:18 Author: lcarlier Revision: 267198
archrelease: copy trunk to staging-any Added: libclc/repos/staging-any/ libclc/repos/staging-any/PKGBUILD (from rev 267197, libclc/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: libclc/repos/staging-any/PKGBUILD (from rev 267197, libclc/trunk/PKGBUILD) =================================================================== --- staging-any/PKGBUILD (rev 0) +++ staging-any/PKGBUILD 2016-05-07 19:09:18 UTC (rev 267198) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Laurent Carlier <lordhea...@gmail.com> + +pkgname=libclc +pkgver=0.2.0+290+b518692 +pkgrel=1 +pkgdesc="Library requirements of the OpenCL C programming language" +arch=('any') +url="http://libclc.llvm.org/" +license=('MIT') +makedepends=('clang' 'llvm' 'python2' 'git') +options=('staticlibs') +source=('git+http://llvm.org/git/libclc#commit=b518692') +md5sums=(SKIP) + +pkgver() { + cd libclc + + echo 0.2.0+$(git rev-list --count HEAD)+$(git describe --always) + #git describe --long | sed 's/-/+/g' +} + +build() { + cd libclc + + sed -i 's/"python < $in >/sys.executable + " < $in >/g' configure.py + + python2 ./configure.py --prefix=/usr + make +} + +package() { + cd libclc + + make install DESTDIR="$pkgdir" + install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} +