void-packages/srcpkgs/geocode-glib/template
2019-02-23 20:32:48 +01:00

38 lines
1.1 KiB
Bash

# Template file for 'geocode-glib'
pkgname=geocode-glib
version=3.26.0
revision=2
build_style=meson
build_helper="gir"
configure_args="-Denable-gtk-doc=false -Denable-introspection=$(vopt_if gir true false)
-Denable-installed-tests=false"
hostmakedepends="pkg-config intltool glib-devel"
makedepends="json-glib-devel libsoup-gnome-devel"
short_desc="GLib library for geocoding and reverse geocoding"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1"
homepage="http://www.gnome.org"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=ea4086b127050250c158beff28dbcdf81a797b3938bb79bbaaecc75e746fbeee
# Package build options
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
geocode-glib-devel_package() {
depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
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
fi
}
}