aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qwt/APKBUILD
blob: 8926618d87910ae5b507e26fcc8e5a66a61b9e29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=qwt
pkgver=6.1.5
pkgrel=0
pkgdesc="Qt Widgets for Technical Applications"
url="https://qwt.sourceforge.io/"
arch="all"
license="custom" # Based on LGPL but more liberal
makedepends="qt5-qtbase-dev qt5-qtsvg-dev qt5-qttools-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/qwt/qwt-$pkgver.tar.bz2"
options="!check" # no unit tests

prepare() {
	default_prepare

	# Fix installation paths, based on Arch Linux's qwt package
	sed -e '/^\s*QWT_INSTALL_PREFIX/ s|=.*|= /usr|' \
		-e '/^QWT_INSTALL_DOCS/ s|/doc|/share/doc/qwt|' \
		-e '/^QWT_INSTALL_HEADERS/ s|include|&/qwt|' \
		-e '/^QWT_INSTALL_PLUGINS/ s|plugins/designer|lib/qt/&|' \
		-e '/^QWT_INSTALL_FEATURES/ s|features|lib/qt/mkspecs/&|' \
		-i qwtconfig.pri
}

build() {
	qmake-qt5 qwt.pro
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname"
}

sha512sums="0dd1a8278751f0bb26e33ccbf120a20e406109a440d314e4525ce9a2d6f1fc56dccff2dc11c500fe2cfcbd42f4a641e87a231f93f321edc588d9353ffaccbd22  qwt-6.1.5.tar.bz2"