void-packages/srcpkgs/qwt/template
Giuseppe Fierro 91f5973981 New package: qwt-6.1.3.
Closes: #11535 [via git-merge-pr]
2018-03-20 12:09:04 +01:00

47 lines
1.3 KiB
Bash

# Template file for 'qwt'
pkgname=qwt
version=6.1.3
revision=1
build_style=qmake
hostmakedepends="qt5-qmake"
makedepends="qt5-tools-devel qt5-svg-devel"
short_desc="Qt Widgets for Technical Applications"
maintainer="Giuseppe Fierro <gspe@ae-design.ws>"
license="Qwt-License, LGPL-2.1"
homepage="http://qwt.sourceforge.net/"
distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-tools-devel qt5-svg-devel"
fi
pre_configure() {
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/qt5/&|' \
-e '/^QWT_INSTALL_FEATURES/ s|features|lib/qt5/mkspecs/&|' \
-i qwtconfig.pri
}
post_install() {
vlicense COPYING
}
qwt-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}
qwt-doc_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - doc files"
pkg_install() {
vmove usr/share/doc
}
}