void-packages/srcpkgs/qwt/template
2021-03-08 10:40:33 +07:00

43 lines
1.2 KiB
Bash

# Template file for 'qwt'
pkgname=qwt
version=6.1.4
revision=1
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
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=1529215329e51fc562e0009505a838f427919a18b362afff441f035b2d9b5bd9
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
}
}