diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-30 00:04:40 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-30 00:04:40 -0200 |
commit | 7f584677fc99d77beced5dec9634731ef0d6805c (patch) | |
tree | 63779aa7bc407097e3ace5758551a660624322a7 /libre-multilib/lib32-libclc-svn | |
parent | 7c74ceedeecf15b299328cf03f0c7bf498d60cf8 (diff) | |
download | abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.tar.gz abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.tar.bz2 abslibre-7f584677fc99d77beced5dec9634731ef0d6805c.zip |
move lib32-{libclc-svn,{mesa-demos,sdl}-libre} from [libre] to [libre-multilib]
Diffstat (limited to 'libre-multilib/lib32-libclc-svn')
-rw-r--r-- | libre-multilib/lib32-libclc-svn/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libre-multilib/lib32-libclc-svn/PKGBUILD b/libre-multilib/lib32-libclc-svn/PKGBUILD new file mode 100644 index 000000000..c1c7e021c --- /dev/null +++ b/libre-multilib/lib32-libclc-svn/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Márcio Silva <coadde@lavabit.com> + +_pkgname=libclc +pkgname=lib32-$_pkgname-svn +pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgrel=2 +arch=x86_64 +pkgdesc='Library requirements of the OpenCL C programming language (32-bit)' +url=http://libclc.llvm.org/ +license=MIT +depends=(lib32-llvm-libs libclc-svn) +makedepends=(clang lib32-llvm python2 svn) +provides=(lib32-$_pkgname) +conflicts=lib32-$_pkgname +source=$_pkgname::svn+http://llvm.org/svn/llvm-project/libclc/trunk +sha512sums=SKIP + +prepare() { + sed -i 's|/usr/bin/python|/usr/bin/python2|g; + ' $srcdir/$_pkgname/{configure,build/ninja_syntax}.py +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + + cd $srcdir/$_pkgname + ./configure.py --prefix=/usr\ + --libexecdir=/usr/lib32/clc\ + --pkgconfigdir=/usr/lib32/pkgconfig\ + --with-llvm-config=/usr/bin/llvm-config32 + make +} + +package() { + cd $srcdir/$_pkgname + make DESTDIR=$pkgdir install + install -vDm644 LICENSE.TXT $pkgdir/usr/share/licenses/$pkgname/LICENSE + msg 'remove useless include dir' + rm -vrf $pkgdir/usr/include +} |