mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
json-glib: enable gir
This commit is contained in:
parent
559964ebbf
commit
00a0a4ad94
1 changed files with 9 additions and 7 deletions
|
@ -1,12 +1,13 @@
|
||||||
# Template file for 'json-glib'
|
# Template file for 'json-glib'
|
||||||
pkgname=json-glib
|
pkgname=json-glib
|
||||||
version=1.4.4
|
version=1.4.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
configure_args="-Dintrospection=$(vopt_if gir true false)"
|
configure_args="-Dintrospection=$(vopt_if gir true false)"
|
||||||
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
|
hostmakedepends="pkg-config glib-devel"
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="A JSON parser for GLib-based libraries and applications"
|
short_desc="JSON parser for GLib-based libraries and applications"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="http://live.gnome.org/JsonGlib"
|
homepage="http://live.gnome.org/JsonGlib"
|
||||||
|
@ -16,10 +17,11 @@ checksum=720c5f4379513dc11fd97dc75336eb0c0d3338c53128044d9fabec4374f4bc47
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
x86_64-musl) build_options_default+=" gir" ;;
|
||||||
build_options_default="gir"
|
*-musl) ;;
|
||||||
fi
|
*) build_options_default+=" gir" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
json-glib-devel_package() {
|
json-glib-devel_package() {
|
||||||
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
depends="libglib-devel ${sourcepkg}-${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue