diff options
Diffstat (limited to 'extra/qwt/PKGBUILD')
-rw-r--r-- | extra/qwt/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/extra/qwt/PKGBUILD b/extra/qwt/PKGBUILD new file mode 100644 index 000000000..daac13765 --- /dev/null +++ b/extra/qwt/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 94465 2010-10-07 10:54:24Z ronald $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> + +pkgname=qwt +pkgver=5.2.1 +pkgrel=1 +pkgdesc="Qt Widgets for Technical Applications" +arch=('i686' 'x86_64') +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=('4a595b8db0ec3856b117836c1d60cb27' + '2cb9135ec875d6de0214fcb032f184a3') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # copy our config file to the right place + install -Dm644 ${srcdir}/qwtconfig-archlinux.pri \ + ${srcdir}/${pkgname}-${pkgver}/qwtconfig.pri + + # build qwt: + qmake qwt.pro + make || return 1 +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make INSTALL_ROOT=${pkgdir} QTDIR=/usr install + + # 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 +} |