37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'jsonrpc-glib'
|
|
pkgname=jsonrpc-glib
|
|
version=3.30.1
|
|
revision=1
|
|
configure_args="-Denable_gtk_doc=false -Dwith_vapi=$(vopt_if gir true false)
|
|
-Dwith_introspection=$(vopt_if gir true false)"
|
|
build_style=meson
|
|
hostmakedepends="pkg-config $(vopt_if gir 'gobject-introspection vala') glib-devel"
|
|
makedepends="libglib-devel json-glib-devel"
|
|
short_desc="Library to communicate using the JSON-RPC 2.0 specification"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/jsonrpc-glib"
|
|
changelog="https://raw.githubusercontent.com/GNOME/jsonrpc-glib/jsonrpc-glib-3-30/NEWS"
|
|
distfiles="${GNOME_SITE}/jsonrpc-glib/${version%.*}/jsonrpc-glib-${version}.tar.xz"
|
|
checksum=b675ce6f414fb8fc9eeed1ad340dc6d08fc329ed67af927bb0fa6a5d7d731dc7
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gir"
|
|
fi
|
|
|
|
jsonrpc-glib-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision} gtk+3-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|
|
|