Hello. First-time CCR contributor here, so I thought it would be
better to submit a review request before uploading this to CCR.
Based on this[http://aur.archlinux.org/packages.php?ID=45678], I made
a PKGBUILD for the newest Qwt version (6.0.1). It obviously conflicts
with qwt and it doesn't provide qwt either, because qwt6 is not
retrocompatible with qwt5 (a little bit offtopic, but why, aside from
kdebindings-python and kdebindings-smokegen, do all packages from the
kdebindings group require qwt?). Here it goes:
# Based on the qwt-beta AUR PKGBUILD from neon <PM on
bbs.archlinux.org for contact>
pkgname=qwt6
pkgver=6.0.1
pkgrel=1
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."
arch=('i686' , 'x86_64')
url="http://qwt.sourceforge.net/"
license=('Qwt License, Version 1.0')
depends=('qt')
conflicts=('qwt')
makedepends=('qt')
source=(http://sourceforge.net/projects/qwt/files/qwt/$pkgver/qwt-
$pkgver.tar.bz2)
md5sums=('ace68558eab873e2da7e641179c4ef0c')
build() {
cd "$srcdir/qwt-$pkgver"
sed -i -e 's/$${QWT_INSTALL_PREFIX}\/doc/\/usr\/share\/doc\/qwt\//'
qwtconfig.pri
sed -i -e 's/$${QWT_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//'
qwtconfig.pri
sed -i -e 's/$${QWT_INSTALL_PREFIX}\/lib/\/usr\/lib\//'
qwtconfig.pri
sed -i -e 's/$${QWT_INSTALL_PREFIX}\/plugins\/designer/\/usr\/lib\/qt
\/plugins\/designer\//' qwtconfig.pri
sed -i -e 's/$${QWT_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/
features\//' qwtconfig.pri
# Commenting out this error only disallows the forced usage of a local
project version of libqwt.
# This is also done in the official arch package for the non-beta
version.
sed -i -e 's/error/#error/' qwtbuild.pri
qmake
make
}
package() {
cd "$srcdir/qwt-$pkgver"
make INSTALL_ROOT="$pkgdir/" install
}