void-packages/srcpkgs/quazip-qt5/template

31 lines
841 B
Bash

# Template file for 'quazip'
pkgname=quazip-qt5
version=0.7.2
revision=1
build_style=qmake
wrksrc=${pkgname%-*}-${version}
hostmakedepends="qt5-qmake"
makedepends="qt5-devel zlib-devel"
short_desc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="LGPL-2.0"
homepage="http://sourceforge.net/projects/quazip/"
distfiles="${SOURCEFORGE_SITE}/${pkgname%-*}/${pkgname%-*}-${version}.tar.gz"
checksum=91d827fbcafd099ae814cc18a8dd3bb709da6b8a27c918ee1c6c03b3f29440f4
provides="quazip-${version}_${revision}"
replaces="quazip>=0"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi
quazip-qt5-devel_package() {
depends="quazip-qt5>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}