2011-02-05 15:33:15 +00:00
|
|
|
# Template build file for 'json-glib'.
|
|
|
|
pkgname=json-glib
|
2015-03-16 06:59:03 +00:00
|
|
|
version=1.0.4
|
2014-03-27 08:22:34 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2015-03-16 06:59:03 +00:00
|
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
|
2013-04-12 14:52:48 +00:00
|
|
|
makedepends="libglib-devel"
|
2011-02-05 15:33:15 +00:00
|
|
|
short_desc="A JSON parser for GLib-based libraries and applications"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
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"
|
2015-03-16 06:59:03 +00:00
|
|
|
checksum=80f3593cb6bd13f1465828e46a9f740e2e9bd3cd2257889442b3e62bd6de05cd
|
2011-02-05 15:33:15 +00:00
|
|
|
|
2014-02-16 08:00:48 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
2013-04-12 14:52:48 +00:00
|
|
|
json-glib-devel_package() {
|
2015-03-16 06:59:03 +00:00
|
|
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
2013-09-26 16:06:22 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 14:52:48 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-26 16:06:22 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 14:52:48 +00:00
|
|
|
}
|
|
|
|
}
|