summaryrefslogtreecommitdiff
path: root/multilib-testing/lib32-glew
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
committerroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
commit965fe5dd2bc0fae6b53c10d880c15f494dd589ac (patch)
tree910883dffa913262b28fb7a0e3bc41c3325b1dd2 /multilib-testing/lib32-glew
parent962d1e81a62d7259ccb686da1a44de2bb28e73a5 (diff)
Tue Oct 9 00:33:25 PDT 2012
Diffstat (limited to 'multilib-testing/lib32-glew')
-rw-r--r--multilib-testing/lib32-glew/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/multilib-testing/lib32-glew/PKGBUILD b/multilib-testing/lib32-glew/PKGBUILD
new file mode 100644
index 000000000..b5302e8ef
--- /dev/null
+++ b/multilib-testing/lib32-glew/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 77251 2012-10-08 08:13:50Z bluewind $
+# Maintainer: Florian Pritz <flo@xinu.at>
+
+_pkgbasename=glew
+pkgname=lib32-$_pkgbasename
+pkgver=1.8.0
+pkgrel=2
+pkgdesc="A cross-platform C/C++ extension loading library (32 bit)"
+arch=('x86_64')
+url="http://glew.sourceforge.net"
+license=('BSD' 'MIT' 'GPL')
+depends=('lib32-libxmu' 'lib32-libxi' 'lib32-glu' "$_pkgbasename>=$pkgver")
+makedepends=('gcc-multilib')
+source=(http://downloads.sourceforge.net/${_pkgbasename}/${_pkgbasename}-${pkgver}.tgz)
+sha1sums=('641c6bb3f924ec786e1e6cf2b1b230f594e0f0e4')
+
+build() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ sed -i 's|CC = cc|CC = gcc -m32|' config/Makefile.linux
+ sed -i 's|LD = cc|LD = gcc -m32|' config/Makefile.linux
+ sed -i 's|lib64|lib32|' config/Makefile.linux
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make GLEW_DEST="${pkgdir}/usr" install
+ chmod 0755 "${pkgdir}/usr/lib32/libGLEW.so.${pkgver}"
+
+ rm -rf "${pkgdir}"/usr/{include,bin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}