40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Template build file for 'json-glib'.
|
|
pkgname=json-glib
|
|
version=1.0.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libglib-devel"
|
|
short_desc="A JSON parser for GLib-based libraries and applications"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://live.gnome.org/JsonGlib"
|
|
license="LGPL-2"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=dbf558d2da989ab84a27e4e13daa51ceaa97eb959c2c2f80976c9322a8f4cdde
|
|
|
|
# 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}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|