upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / qwt / trunk / PKGBUILD
blob96180d52a2576b88e0033cf0c1177133f76f0498
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Maintainer: Ronald van Haren <ronald.archlinux.org>
4 pkgname=qwt
5 pkgver=6.2.0
6 pkgrel=1
7 pkgdesc='Qt Widgets for Technical Applications'
8 url='https://qwt.sourceforge.io/'
9 arch=('x86_64')
10 depends=('qt5-base' 'qt5-svg')
11 optdepends=('qt5-tools: For Designer plugin')
12 makedepends=('qt5-tools')
13 provides=('qwtpolar')
14 replaces=('qwtpolar')
15 license=("custom:${pkgname}")
16 source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
17 sha512sums=('d992f9dddb09ad0e1d09e23a24a9331c950ca19a413d2627cf423e1ddc2a4ad4eb951646f789e8c7a9ab42668c30d7108071f3f8bbd8e1f4118cadb67c34939d')
19 prepare() {
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/&|' \
27       -i qwtconfig.pri
30 build() {
31   cd ${pkgname}-${pkgver}
32   qmake-qt5 qwt.pro
33   make
36 package() {
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}"
44 # vim: ts=2 sw=2 et: