updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / pyfltk2 / PKGBUILD
blob847a403ecc20624f4a48b811e0b7f50f778db9a8
1 # Contributor: David Baumgarten <David_Baumgarten@gmx.net>
3 pkgname=pyfltk2
4 pkgver=1.0.0b1
5 pkgrel=1
6 _origpkgname=pyFltk2
7 pkgdesc="Python wrapper for Fast Light Tool Kit cross-platform GUI library"
8 url="http://pyfltk.sourceforge.net"
9 license=('LGPL')
10 arch=('i686')
11 depends=('mesa' 'libgl' 'fltk2-static-svn>=r5940' 'python>=2.4')
12 makedepends=('python>=2.4' 'swig>=1.3.30')
13 source=(http://downloads.sourceforge.net/pyfltk/pyFltk2-$pkgver.tar.gz)
14 md5sums=('37cbab21f7fa0ea0da200f1cac675bbc')
16 build() {
17         mkdir -p $startdir/pkg/usr/share/pyfltk2/docs/
18         cp -R $startdir/src/$_origpkgname-$pkgver/fltk2/docs/* $startdir/pkg/usr/share/pyfltk2/docs/ 
19         mkdir -p $startdir/pkg/usr/share/pyfltk2/test/
20         cp -R $startdir/src/$_origpkgname-$pkgver/fltk2/test/* $startdir/pkg/usr/share/pyfltk2/test/ 
21         cd $startdir/src/$_origpkgname-$pkgver/python
22         python MakeSwig.py
23         cd $startdir/src/$_origpkgname-$pkgver
24         python setup.py build install --prefix=/usr --root=$startdir/pkg/