# Maintainer: Márcio Silva # Contributor: André Silva pkgname=lib32-libclc pkgver=0.0.1.231373 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' 'python2' 'libclc') options=('staticlibs') replaces=(lib32-libclc-svn) provides=(lib32-libclc-svn) conflicts=(lib32-libclc-svn) source=(https://sources.archlinux.org/other/packages/libclc/libclc-$pkgver.src.tar.xz) md5sums=('e7b0767cd9f6c171ba4990df5d41b2aa') 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 }