2011-02-05 16:33:15 +01:00
|
|
|
# Template build file for 'json-glib'.
|
|
|
|
pkgname=json-glib
|
2014-03-27 09:22:34 +01:00
|
|
|
version=1.0.0
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-16 09:00:48 +01:00
|
|
|
hostmakedepends="pkg-config glib-devel"
|
2013-04-12 16:52:48 +02:00
|
|
|
makedepends="libglib-devel"
|
2011-02-05 16:33:15 +01:00
|
|
|
short_desc="A JSON parser for GLib-based libraries and applications"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-17 16:24:24 +02:00
|
|
|
homepage="http://live.gnome.org/JsonGlib"
|
|
|
|
license="LGPL-2"
|
2013-09-26 18:06:22 +02:00
|
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
2014-03-27 09:22:34 +01:00
|
|
|
checksum=dbf558d2da989ab84a27e4e13daa51ceaa97eb959c2c2f80976c9322a8f4cdde
|
2011-02-05 16:33:15 +01:00
|
|
|
|
2014-02-16 09:00:48 +01: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
|
2013-04-12 16:52:48 +02:00
|
|
|
|
|
|
|
json-glib-devel_package() {
|
2014-02-16 09:00:48 +01:00
|
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-26 18:06:22 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 16:52:48 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-26 18:06:22 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 16:52:48 +02:00
|
|
|
}
|
|
|
|
}
|