36 lines
991 B
Bash
36 lines
991 B
Bash
# Template file for 'json-glib'
|
|
pkgname=json-glib
|
|
version=1.4.4
|
|
revision=2
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dintrospection=$(vopt_if gir true false)"
|
|
hostmakedepends="pkg-config glib-devel"
|
|
makedepends="libglib-devel"
|
|
short_desc="JSON parser for GLib-based libraries and applications"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://live.gnome.org/JsonGlib"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=720c5f4379513dc11fd97dc75336eb0c0d3338c53128044d9fabec4374f4bc47
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) build_options_default+=" gir" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir" ;;
|
|
esac
|
|
|
|
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"
|
|
}
|
|
}
|