1 # Maintainer: neon <PM on bbs.archlinux.org for contact>
3 #Note that "-rc5" should be part of the version, but hyphens are not allowed by makepkg
6 pkgdesc="The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background. Beside a 2D plot widget it provides scales, sliders, dials, compasses, thermometers, wheels and knobs to control or display values, arrays, or ranges of type double."
7 arch=('i686' , 'x86_64')
8 url="http://qwt.sourceforge.net/"
9 license=('Qwt License, Version 1.0')
13 source=(http://sourceforge.net/projects/qwt/files/qwt-beta/$pkgver-rc5/qwt-$pkgver-rc5.tar.bz2)
14 md5sums=('ff7f2cf6aef416f0addd2378473b4672')
17 cd "$srcdir/qwt-$pkgver-rc5"
18 sed -i -e 's/$${QWT_INSTALL_PREFIX}\/doc/\/usr\/share\/doc\/qwt\//' qwtconfig.pri
19 sed -i -e 's/$${QWT_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//' qwtconfig.pri
20 sed -i -e 's/$${QWT_INSTALL_PREFIX}\/lib/\/usr\/lib\//' qwtconfig.pri
21 sed -i -e 's/$${QWT_INSTALL_PREFIX}\/plugins\/designer/\/usr\/lib\/qt\/plugins\/designer\//' qwtconfig.pri
22 sed -i -e 's/$${QWT_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/features\//' qwtconfig.pri
24 # Commenting out this error only disallows the forced usage of a local project version of libqwt.
25 # This is also done in the official arch package for the non-beta version.
26 sed -i -e 's/error/#error/' qwtbuild.pri
33 cd "$srcdir/qwt-$pkgver-rc5"
35 make INSTALL_ROOT="$pkgdir/" install