updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libqglviewer-qt3 / PKGBUILD
blob3312b7cb08fb2aba003fe981d61d52fd98e5fe70
1 # Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr>
2 pkgname=libqglviewer-qt3
3 pkgver=2.2.6.3
4 pkgrel=1
5 pkgdesc="C++ library based on Qt that eases the creation of OpenGL 3D viewers"
6 arch=('i686' 'x86_64')
7 url="http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/"
8 license=('GPL')
9 depends=('qt3' 'mesa')
10 provides=(libqglviewer)
11 conflicts=(libqglviewer)
12 source=(http://artis.imag.fr/Members/Gilles.Debunne/QGLViewer/src/libQGLViewer-2.2.6-3.tar.gz
13         includes.patch)
14 md5sums=('14ae14cd9914679f1a3e63feaa390c26'
15          '34a5628ea6a41e1ce3ae1550f2f7e2ae')
16 build() {
17   export QTDIR=/opt/qt
18   export QMAKESPEC=/opt/qt/mkspecs/linux-g++
19   cd "$srcdir/libQGLViewer-2.2.6-3/QGLViewer"
20   patch -p1 < "$srcdir/includes.patch"
21   /opt/qt/bin/qmake PREFIX=/opt/qt || return 1
22   sed -i 's/Makefile.Release/Makefile/' Makefile
23   make || return 1
24   make INSTALL_ROOT="$pkgdir" install