44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'qwt'
|
|
pkgname=qwt
|
|
version=6.1.5
|
|
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="LGPL-2.1-only, Qwt-exception-1.0"
|
|
homepage="https://qwt.sourceforge.io/"
|
|
distfiles="https://sourceforge.net/projects/${pkgname}/files/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
|
|
checksum=4076de63ec2b5e84379ddfebf27c7b29b8dc9074f3db7e2ca61d11a1d8adc041
|
|
|
|
post_patch() {
|
|
vsed -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
|
|
}
|
|
}
|