void-packages/srcpkgs/qjson/template
2018-11-24 17:07:57 -02:00

27 lines
732 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="Juan RP <xtraeme@voidlinux.eu>"
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
}
}