1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Ronald van Haren <ronald.archlinux.org>
7 pkgdesc='Qt Widgets for Technical Applications'
8 url='https://qwt.sourceforge.io/'
10 depends=('qt5-base' 'qt5-svg')
11 optdepends=('qt5-tools: For Designer plugin')
12 makedepends=('qt5-tools')
15 license=("custom:${pkgname}")
16 source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
17 sha512sums=('d992f9dddb09ad0e1d09e23a24a9331c950ca19a413d2627cf423e1ddc2a4ad4eb951646f789e8c7a9ab42668c30d7108071f3f8bbd8e1f4118cadb67c34939d')
20 cd ${pkgname}-${pkgver}
22 sed -e '/^\s*QWT_INSTALL_PREFIX/ s|=.*|= /usr|' \
23 -e '/^QWT_INSTALL_DOCS/ s|/doc|/share/doc/qwt|' \
24 -e '/^QWT_INSTALL_HEADERS/ s|include|&/qwt|' \
25 -e '/^QWT_INSTALL_PLUGINS/ s|plugins/designer|lib/qt/&|' \
26 -e '/^QWT_INSTALL_FEATURES/ s|features|lib/qt/mkspecs/&|' \
31 cd ${pkgname}-${pkgver}
37 cd ${pkgname}-${pkgver}
38 make INSTALL_ROOT="${pkgdir}" install
40 mv "${pkgdir}/usr/share/doc/qwt/man" "${pkgdir}/usr/share"
41 install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"