updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / glui / PKGBUILD
blobd89998de2f4e5beea527444b336797e13ce02988
1 # Contributor: ice-man <icemanf@gmail.com>
2 pkgname=glui
3 pkgver=2.36
4 pkgrel=1
5 pkgdesc="GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications"
6 makedepends=('freeglut')
7 depends=('freeglut')
8 source=("http://downloads.sourceforge.net/glui/glui-2.36.tgz")
9 url="http://glui.sourceforge.net/"
10 arch=('i686')
11 md5sums=('9e8d506af9a9428dac09e8cd7bda7c1e')
12 license="GPL"
14 build() {
15         cd ${startdir}/src/${pkgname}-${pkgver}/src
16         
17         echo -e "\nPATCHING MAKEFILE\n-------------------------------"
18         echo $(pwd)
19         patch -p0 < ../../../makefile.patch > /dev/null
20         echo -e "makefile.patch applied\n"
22         make setup || exit 0
23         make lib/libglui.a || exit 0
25         mkdir -p $startdir/pkg/usr/lib/
26         mkdir -p $startdir/pkg/usr/include/ 
27         mkdir -p $startdir/pkg/share/doc/glui-2.35/
29         cp lib/libglui.a $startdir/pkg/usr/lib/
30         cp include/GL/glui.h $startdir/pkg/usr/include/
31         cp doc/glui_manual.pdf $startdir/pkg/share/doc/glui-2.35/