2022-05-10 11:50:34 +02:00
|
|
|
# Template file for 'libshumate'
|
|
|
|
pkgname=libshumate
|
|
|
|
version=1.0.3
|
|
|
|
revision=1
|
|
|
|
build_style=meson
|
|
|
|
build_helper="gir"
|
|
|
|
configure_args="$(vopt_bool gir vapi) $(vopt_bool gir gir) $(vopt_bool gir gtk_doc)"
|
|
|
|
hostmakedepends="pkg-config $(vopt_if gir 'gi-docgen vala') glib-devel gettext"
|
|
|
|
makedepends="libglib-devel sqlite-devel cairo-devel gtk4-devel libsoup3-devel"
|
2022-12-11 22:08:13 +01:00
|
|
|
checkdepends="xvfb-run"
|
2022-05-10 11:50:34 +02:00
|
|
|
short_desc="C library providing a GtkWidget to display maps"
|
|
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
|
|
license="LGPL-2.1-or-later"
|
|
|
|
homepage="https://wiki.gnome.org/Projects/libshumate"
|
|
|
|
#changelog="https://gitlab.gnome.org/GNOME/libshumate/-/raw/main/NEWS"
|
|
|
|
changelog="https://gitlab.gnome.org/GNOME/libshumate/-/raw/libshumate-1-0/NEWS"
|
|
|
|
distfiles="${GNOME_SITE}/libshumate/${version%.*}/libshumate-${version}.tar.xz"
|
|
|
|
checksum=77a192f0dfec082b8de20b1939f3adf03eed41114d49fdaae2bbb2729ceb015a
|
2022-12-11 22:08:13 +01:00
|
|
|
make_check_pre="xvfb-run"
|
2022-05-10 11:50:34 +02:00
|
|
|
|
|
|
|
build_options="gir"
|
|
|
|
build_options_default="gir"
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# help gi-docgen find gi files on cross
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
|
|
export XDG_DATA_DIRS=/usr/$XBPS_CROSS_TRIPLET/usr/share/
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
libshumate-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
if [ "${build_option_gir}" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
vmove usr/share/vala
|
|
|
|
vmove usr/share/doc
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|