1 pkgname=lib32-mingw-w64-glew
4 pkgdesc="GLEW, The OpenGL Extension Wrangler Library (mingw-w64, 32-bit)"
6 url="http://glew.sourceforge.net/"
7 license=('Modified BSD/MIT/GPL')
8 depends=('mingw-w64-crt')
9 makedepends=('mingw-w64-gcc')
10 options=(!strip !buildflags)
11 source=(http://downloads.sourceforge.net/glew/glew-${pkgver}.tgz Makefile.patch Makefile.mingw.patch)
13 md5sums=('fb7a8bb79187ac98a90b57f0f27a3e84'
14 'dd09a506bcf5a0424a26d274346e8737'
15 '362518879c2dfccd21ac16f00272c2d6')
18 cd "$srcdir/glew-$pkgver"
22 patch Makefile -i "../../Makefile.patch"
23 patch config/Makefile.mingw -i "../../Makefile.mingw.patch"
25 echo -e "#!/bin/sh\necho mingw" > config/config.guess
27 GLEW_DEST=/usr/i686-w64-mingw32/ make
31 cd "$srcdir/glew-$pkgver"
32 mkdir -p "$pkgdir/usr/i686-w64-mingw32/lib/pkgconfig"
33 GLEW_DEST="$pkgdir/usr/i686-w64-mingw32" make install