diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-22 16:52:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-22 16:52:31 -0300 |
commit | a14ed89828458f094332dd3d376ddf12b1829abd (patch) | |
tree | 1369eaad4c827c1795c590ed02e7d6a786fd1b0c /libre-multilib/lib32-libclc | |
parent | 59f207d8c7004936475be766b4769a81ef4eb9fa (diff) | |
download | abslibre-a14ed89828458f094332dd3d376ddf12b1829abd.tar.gz abslibre-a14ed89828458f094332dd3d376ddf12b1829abd.tar.bz2 abslibre-a14ed89828458f094332dd3d376ddf12b1829abd.zip |
lib32-libclc-0.0.1.207685-1: add new package to [libre], lib32-libclc-svn removed
Diffstat (limited to 'libre-multilib/lib32-libclc')
-rw-r--r-- | libre-multilib/lib32-libclc/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libre-multilib/lib32-libclc/PKGBUILD b/libre-multilib/lib32-libclc/PKGBUILD new file mode 100644 index 000000000..9480a0851 --- /dev/null +++ b/libre-multilib/lib32-libclc/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> +# Contributor: André Silva <emulatorman@parabola.nu> + +pkgname=lib32-libclc +pkgver=0.0.1.207685 +pkgrel=1 +pkgdesc="Library requirements of the OpenCL C programming language (32-bit)" +arch=('x86_64') +url="http://libclc.llvm.org/" +license=('MIT') +makedepends=('lib32-clang' 'svn' 'python2' 'libclc') +options=('staticlibs') +replaces=(lib32-libclc-svn) +provides=(lib32-libclc-svn) +conflicts=(lib32-libclc-svn) +source=('libclc::svn+http://llvm.org/svn/llvm-project/libclc/trunk#revision=207685') +md5sums=(SKIP) + +build() { + cd libclc + + sed -i 's/"python < $in >/sys.executable + " < $in >/g' configure.py +# sed -i 's/python < $in >/python2 < $in >/g' configure.py + + python2 ./configure.py --prefix=/usr \ + --libexecdir=/usr/lib32/clc \ + --pkgconfigdir=/usr/lib32/pkgconfig \ + --with-llvm-config=/usr/bin/llvm-config32 \ + --with-cxx-compiler="/usr/bin/g++ -m32" + make +} + +package() { + cd libclc + + make install DESTDIR="$pkgdir" + install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + msg 'remove useless include dir' + rm -vrf $pkgdir/usr/include +} + |