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>
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')
25 cd $srcdir/${_pkgname}-$_pkgver
27 patch -p0 < $srcdir/$_pglname-$pkgver/src/$_pkgname-$_pkgver-py.patch
31 make install INSTALL_ROOT="$pkgdir"
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
39 cd $srcdir/$_pglname-$pkgver
40 python2 configure.py -Q ../$_pkgname-$pkgver
42 make install DESTDIR=$pkgdir