PKGBUILDs/extra/qwt/PKGBUILD
2009-10-18 23:18:41 -05:00

36 lines
1 KiB
Bash

# Maintainer: Ronald van Haren <ronald.archlinux.org>
pkgname=qwt
pkgver=5.2.0
pkgrel=1
pkgdesc="Qt Widgets for Technical Applications"
arch=('arm')
url="http://qwt.sourceforge.net/"
depends=('qt>=4.5.1')
options=('!makeflags')
license=("custom:$pkgname")
source=(http://downloads.sourceforge.net/sourceforge/qwt/$pkgname-$pkgver.tar.bz2
qwtconfig-archlinux.pri)
md5sums=('c60b4cfac271a41524402b3ae5197890'
'2cb9135ec875d6de0214fcb032f184a3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# copy our config file to the right place
cp -f ${srcdir}/qwtconfig-archlinux.pri \
${srcdir}/${pkgname}-${pkgver}/qwtconfig.pri || return 1
# build qwt:
qmake qwt.pro
make || return 1
make INSTALL_ROOT=${pkgdir} QTDIR=/usr install || return 1
# fix doc files
install -d ${pkgdir}/usr/share/doc/${pkgname}
mv -f ${pkgdir}/usr/share/html/* ${pkgdir}/usr/share/doc/${pkgname}
# install licence
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/COPYING \
${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}