void-packages/srcpkgs/geocode-glib/template

43 lines
1.2 KiB
Bash

# Template file for 'geocode-glib'
pkgname=geocode-glib
version=3.26.4
revision=2
build_style=meson
build_helper="gir"
configure_args="-Denable-gtk-doc=false $(vopt_bool gir enable-introspection)
-Denable-installed-tests=false -Dsoup2=false"
hostmakedepends="pkg-config glib-devel"
makedepends="json-glib-devel libsoup3-devel"
depends="geocode-glib-common"
short_desc="GLib library for geocoding and reverse geocoding"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://developer.gnome.org/geocode-glib"
distfiles="${GNOME_SITE}/geocode-glib/${version%.*}/geocode-glib-${version}.tar.xz"
checksum=2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa
make_check=no # expects installed locales
# Package build options
build_options="gir"
build_options_default="gir"
geocode-glib-common_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/share/icons
}
}
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
}
}