diff options
Diffstat (limited to 'multilib/lib32-glew/PKGBUILD')
-rw-r--r-- | multilib/lib32-glew/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/multilib/lib32-glew/PKGBUILD b/multilib/lib32-glew/PKGBUILD new file mode 100644 index 000000000..ca8a47eaf --- /dev/null +++ b/multilib/lib32-glew/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 39623 2011-02-13 10:47:57Z bluewind $ +# Maintainer: Florian Pritz <flo@xinu.at> + +_pkgbasename=glew +pkgname=lib32-$_pkgbasename +pkgver=1.5.8 +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-mesa' "$_pkgbasename>=$pkgver") +makedepends=('gcc-multilib') +source=(http://downloads.sourceforge.net/${_pkgbasename}/${_pkgbasename}-${pkgver}.tgz) +md5sums=('342c8dc64fb9daa6af245b132e086bdd') +sha1sums=('450946935faa20ac4950cb42ff025be2c1f7c22e') + +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,lib32/libGLEW.a} + mkdir -p "$pkgdir/usr/share/licenses" + ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname" +} |