void-packages/srcpkgs/json-glib/template

41 lines
1.1 KiB
Text
Raw Normal View History

2011-02-05 15:33:15 +00:00
# Template build file for 'json-glib'.
pkgname=json-glib
2014-06-03 08:04:52 +00:00
version=1.0.2
2014-03-27 08:22:34 +00:00
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel"
2011-02-05 15:33:15 +00:00
short_desc="A JSON parser for GLib-based libraries and applications"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-06-17 14:24:24 +00:00
homepage="http://live.gnome.org/JsonGlib"
license="LGPL-2"
2013-09-26 16:06:22 +00:00
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
2014-06-03 08:04:52 +00:00
checksum=887bd192da8f5edc53b490ec51bf3ffebd958a671f5963e4f3af32c22e35660a
2011-02-05 15:33:15 +00:00
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
json-glib-devel_package() {
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
2013-09-26 16:06:22 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
2013-09-26 16:06:22 +00:00
vmove "usr/lib/*.so"
}
}