34 lines
966 B
Bash
34 lines
966 B
Bash
# Template build file for 'json-glib'.
|
|
pkgname=json-glib
|
|
version=1.4.2
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
|
|
makedepends="libglib-devel"
|
|
short_desc="A JSON parser for GLib-based libraries and applications"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://live.gnome.org/JsonGlib"
|
|
license="LGPL-2"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
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"
|
|
}
|
|
}
|