updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyqglviewer / PKGBUILD
blob83e6fc67e975ea22d1d643ab9338b75ee1cfe433
1 # Maintainer: Gianluca Montecchi <gian@grys.it>
2 # Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
3 # Contributor: Dmitriy Morozov <archlinux@foxcub.org>
4 # Contributor: Larry Hajali <larryhaja [at] gmail [dot] com>
6 pkgname=pyqglviewer
7 _pkgname=libQGLViewer
8 _pglname=PyQGLViewer
9 _pkgver=2.3.9
10 pkgver=0.9.1
11 pkgrel=1
12 pkgdesc="Python binding for libQGLViewer C++ library"
13 url="http://pyqglviewer.gforge.inria.fr/wiki/doku.php"
14 depends=('qt' 'python2' 'python-opengl')
15 makedepends=('patch' 'python2')
16 arch=('i686' 'x86_64')
17 license=('GPL2' 'GPL3' 'custom')
18 source=(http://www.libqglviewer.com/src/${_pkgname}-${_pkgver}.tar.gz
19                                 https://gforge.inria.fr/frs/download.php/28212/$_pglname-$pkgver.zip)
20 md5sums=('a882cb3a8da4ee904a33b46ebb44f905'
21                                 'a7638c5fb619aa8b3c0fdc59068f0a3e')
23 build() 
25                 cd $srcdir/${_pkgname}-$_pkgver
26                 # dos2unix?
27                 patch -p0 < $srcdir/$_pglname-$pkgver/src/$_pkgname-$_pkgver-py.patch
28                 cd QGLViewer
29                 qmake
30                 make
31                 make install INSTALL_ROOT="$pkgdir"
33                 # Install license.
34                 cd $srcdir/${_pkgname}-$_pkgver
35                 install -d -m 0755 "${pkgdir}"/usr/share/licenses/$_pkgname/ || return 1
36                 install -m 0644 LICENCE GPL_EXCEPTION "${pkgdir}"/usr/share/licenses/$_pkgname/ || return 1
38                 # PyQGLViewer
39                 cd $srcdir/$_pglname-$pkgver
40                 python2 configure.py -Q ../$_pkgname-$pkgver
41                 make
42                 make install DESTDIR=$pkgdir