updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / python2-pyqwt-cvs / PKGBUILD
blob05bfef8f3af5d6bbe376019ee871082763fa9650
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
3 pkgname=python2-pyqwt-cvs
4 pkgver=20110529
5 pkgrel=1
6 pkgdesc="Python bindings for Qt Widgets for Technical Applications, CVS version"
7 arch=("i686" "x86_64")
8 url="http://pyqwt.sourceforge.net/"
9 depends=('python2' 'python2-pyqt>=4.8.0' 'python2-numpy>=1.3.0' 'qwt>=5.0.0' 'python2-sip>=4.12.0')
10 makedepends=('cvs')
11 options=('!makeflags')
12 provides=('pyqwt==5.2.0.999')
13 conflicts=('pyqwt')
14 license=("GPL")
16 _cvsroot=":pserver:anonymous@pyqwt.cvs.sourceforge.net:/cvsroot/pyqwt"
17 _cvsmod="pyqwt5"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
22   if [ -d $_cvsmod/CVS ]; then
23     cd $_cvsmod
24     cvs -z3 update -d
25   else
26     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
27     cd $_cvsmod
28   fi
30   msg "CVS checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_cvsmod-build"
34   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
35   cd "$srcdir/$_cvsmod-build"
37   # build pyqwt:
38   cd configure
39   python2 configure.py -I/usr/include/qwt -lqwt
41   make
44 package() {
45   cd "$srcdir/$_cvsmod-build/configure"
46   make DESTDIR="$pkgdir" install