48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'json-glib'
|
|
pkgname=json-glib
|
|
version=1.10.0
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="$(vopt_feature gir introspection)
|
|
$(vopt_feature gtk_doc documentation)"
|
|
hostmakedepends="pkg-config glib-devel gettext python3-docutils
|
|
$(vopt_if gtk_doc gi-docgen)"
|
|
makedepends="libglib-devel"
|
|
short_desc="JSON parser for GLib-based libraries and applications"
|
|
maintainer="skmpz <dem.procopiou@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://live.gnome.org/JsonGlib"
|
|
changelog="https://gitlab.gnome.org/GNOME/json-glib/-/raw/master/NEWS"
|
|
distfiles="${GNOME_SITE}/json-glib/${version%.*}/json-glib-${version}.tar.xz"
|
|
checksum=1bca8d66d96106ecc147df3133b95a5bb784f1fa6f15d06dd7c1a8fb4a10af7b
|
|
|
|
# Package build options
|
|
build_options="gir gtk_doc"
|
|
build_options_default="gir"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
post_install() {
|
|
rm -r ${DESTDIR}/usr/share/installed-tests
|
|
rm -r ${DESTDIR}/usr/libexec/installed-tests
|
|
}
|
|
|
|
json-glib-devel_package() {
|
|
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/doc
|
|
fi
|
|
}
|
|
}
|