4 pkgdesc="A collection of opengl example programs"
6 url="http://www.xmission.com/~nate/tutors.html"
8 depends=('freeglut' 'libgl')
9 source=(http://www.xmission.com/~nate/tutors/tutors-src.zip)
10 md5sums=('b586794ac73a02a92f3c73033b521658')
15 sed -i -e 's,^LDFLAGS =\(.*\) -lglu \(.*\)$,LDFLAGS = \1 -lGLU \2,' Makefile
17 # fix the resources path
19 fog.c glm.c lightmaterial.c lightposition.c projection.c shapes.c \
20 texture.c transformation.c glm.h materials.h
22 sed -i -e "s,data/,/usr/share/$pkgname/," $file
29 mkdir -p $pkgdir/usr/bin
30 mkdir -p $pkgdir/usr/share/$pkgname/
33 fog lightmaterial lightposition projection \
34 shapes texture transformation
36 cp $srcdir/tutors/$app $pkgdir/usr/bin/
39 cp $srcdir/tutors/data/*.{ppm,mtl,obj} $pkgdir/usr/share/$pkgname/