updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qwtpolar / PKGBUILD
blob51c2a9eab14c5436b8f7665094025217676ed560
1 pkgname=qwtpolar
2 pkgver=0.1.0
3 pkgrel=3
4 pkgdesc="The QwtPolar library aims to implement polar functions for Qwt."
5 arch=('i686', 'x86_64')
6 url="http://qwtpolar.sourceforge.net"
7 license=('Qwt License', 'Version 1.0')
8 depends=('qwt5' 'qt')
9 conflict=()
10 makedepends=('qwt5' 'qt')
11 source="http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.zip"
12 md5sums="fa03466daefab321b742ca08b03d7685"
14 build() {
15     cd "$srcdir/$pkgname-$pkgver"
17     sed -i -e 's/$$INSTALLBASE\/doc/\/usr\/share\/doc\/qwtpolar\//' qwtpolar.pri
18     sed -i -e 's/$$INSTALLBASE\/include/\/usr\/include\/qwt5\//' qwtpolar.pri
19     sed -i -e 's/$$INSTALLBASE\/lib/\/usr\/lib\//' qwtpolar.pri
21     sed -i -e 's/\/path\/to\/qwt-5.2\/include/\/usr\/include\/qwt5\//' qwtpolar.pri
22     sed -i -e 's/\/path\/to\/qwt-5.2\/lib/\/usr\/lib\//' qwtpolar.pri
24     sed -i -e 's/SUFFIX_STR =/SUFFIX_STR=5/' src/src.pro
26     sed -i -e 's/^.*QwtPolarDesigner//' qwtpolar.pri
27     sed -i -e 's/^.*QwtPolarExamples//' qwtpolar.pri
29     qmake
30     make
33 package() {
34     cd "$srcdir/$pkgname-$pkgver"
35     make INSTALL_ROOT="$pkgdir/" install
36