33 lines
974 B
Bash
33 lines
974 B
Bash
# Template file for 'json-glib'
|
|
pkgname=json-glib
|
|
version=1.4.4
|
|
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="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"
|
|
|
|
# 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"
|
|
}
|
|
}
|