void-packages/srcpkgs/qjson/template

27 lines
733 B
Bash

# Template file for 'qjson'
pkgname=qjson
version=0.9.0
revision=2
build_style=cmake
makedepends="qt-devel"
short_desc="A QT-based library that maps JSON data to QVariant objects"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://qjson.sourceforge.net"
distfiles="https://github.com/flavio/qjson/archive/$version.tar.gz"
checksum=e812617477f3c2bb990561767a4cd8b1d3803a52018d4878da302529552610d4
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt-host-tools qt-devel"
fi
qjson-devel_package() {
depends="qt-devel ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}