summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre-multilib/lib32-libclc-svn/PKGBUILD41
-rw-r--r--libre-multilib/lib32-libclc/PKGBUILD41
2 files changed, 41 insertions, 41 deletions
diff --git a/libre-multilib/lib32-libclc-svn/PKGBUILD b/libre-multilib/lib32-libclc-svn/PKGBUILD
deleted file mode 100644
index 788976023..000000000
--- a/libre-multilib/lib32-libclc-svn/PKGBUILD
+++ /dev/null
@@ -1,41 +0,0 @@
-# Maintainer: Márcio Silva <coadde@parabola.nu>
-
-_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
-}
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
+}
+