void-packages/srcpkgs/prison/template
2021-02-19 20:34:34 +01:00

34 lines
1,007 B
Bash

# Template file for 'prison'
pkgname=prison
version=5.79.0
revision=1
build_style=cmake
hostmakedepends="kcoreaddons extra-cmake-modules qt5-tools doxygen qt5-declarative-devel"
makedepends="qt5-devel libdmtx-devel qrencode-devel ecm-devel qt5-plugin-sqlite
qt5-declarative-devel"
short_desc="Barcode API to produce QRCode barcodes and DataMatrix barcodes"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://community.kde.org/Frameworks"
distfiles="${KDE_SITE}/frameworks/${version%.*}/prison-${version}.tar.xz"
checksum=425dca5bf0dcf5b86cd71f2a62a8b86463619cc339ea4767e024a4778c35c6e6
if [ "$CROSS_BUILD" ];then
hostmakedepends+=" qt5-qmake qt5-host-tools"
fi
post_install() {
vlicense LICENSES/BSD-3-Clause.txt
vlicense LICENSES/MIT.txt
}
prison-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}