SHOW:
|
|
- or go back to the newest paste.
1 | # Maintainer: Eugen Zagorodniy <e dot zagorodniy at gmail dot com> | |
2 | # Contributor: Olaf Leidinger <leidola@newcon.de> | |
3 | # Contributer: Henning Garus <henning.garus@gmail.com> | |
4 | # Contributor: Thomas Burdick <thomas.burdick@gmail.com> | |
5 | ||
6 | pkgname=pyqwt | |
7 | pkgver=5.2.0 | |
8 | pkgrel=9 | |
9 | pkgdesc="Python bindings for Qt Widgets for Technical Applications" | |
10 | arch=("i686" "x86_64") | |
11 | url="http://pyqwt.sourceforge.net/" | |
12 | depends=('python2' 'python2-pyqt>=4.6.0' 'python2-numpy>=1.1.0' 'qwt5>=5.0.2' 'sip>=4.7.6') | |
13 | options=('!makeflags') | |
14 | license=("GPL") | |
15 | source=( | |
16 | "http://downloads.sourceforge.net/sourceforge/pyqwt/PyQwt-$pkgver.tar.gz" | |
17 | "qplt.py-r1.21.patch::http://pyqwt.cvs.sourceforge.net/viewvc/pyqwt/pyqwt5/qt4lib/PyQt4/Qwt5/qplt.py?r1=1.20&r2=1.21&view=patch" | |
18 | "use-qwt5.patch" | |
19 | ) | |
20 | md5sums=('fcd6c6029090d473dcc9df497516eae7' | |
21 | '15e4c1f047f4b3867ca5c30b9c209349' | |
22 | '8d811bcfaf1a952286b12b6e6152c68a') | |
23 | ||
24 | build() { | |
25 | cd $srcdir | |
26 | patch PyQwt-$pkgver/qt4lib/PyQt4/Qwt5/qplt.py qplt.py-r1.21.patch | |
27 | patch -d PyQwt-$pkgver -p1 < use-qwt5.patch | |
28 | cd PyQwt-$pkgver/configure | |
29 | sed -i 's|'\''qmake'\''|'\''qmake-qt4'\''|' configure.py | |
30 | python2 configure.py -I/usr/include/qwt5 -lqwt5 || return 1 | |
31 | ||
32 | - | qmake-qt4 || return 1 |
32 | + | make || return 1 |
33 | make DESTDIR=$pkgdir install || return 1 | |
34 | } |