PKGBUILDs/extra/qwt/PKGBUILD

37 lines
1 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# Maintainer: Ronald van Haren <ronald.archlinux.org>
pkgname=qwt
pkgver=5.2.0
pkgrel=1
pkgdesc="Qt Widgets for Technical Applications"
2009-10-19 04:18:41 +00:00
arch=('arm')
2009-10-10 02:23:22 +00:00
url="http://qwt.sourceforge.net/"
depends=('qt>=4.5.1')
options=('!makeflags')
license=("custom:$pkgname")
2009-10-19 04:18:41 +00:00
source=(http://downloads.sourceforge.net/sourceforge/qwt/$pkgname-$pkgver.tar.bz2
qwtconfig-archlinux.pri)
2009-10-10 02:23:22 +00:00
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
}