40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'libgweather'
|
|
pkgname=libgweather
|
|
version=40.0
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="$(vopt_bool gir enable_vala) -Dzoneinfo_dir=/usr/share/zoneinfo"
|
|
hostmakedepends="glib-devel intltool pkg-config python3-gobject-devel $(vopt_if gir vala)"
|
|
makedepends="geocode-glib-devel gtk+3-devel libsoup-gnome-devel"
|
|
depends="tzdata"
|
|
short_desc="GNOME Weather information access library"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/LibGWeather"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=ca4e8f2a4baaa9fc6d75d8856adb57056ef1cd6e55c775ba878ae141b6276ee6
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
post_patch() {
|
|
# This test requires LC_IDENTIFICATION, which is a GLIBC's extension
|
|
# And looks like we didn't ship it.
|
|
vsed -i -e '/setlocale.*fr_FR/i return;' libgweather/test_libgweather.c
|
|
}
|
|
|
|
libgweather-devel_package() {
|
|
depends="${makedepends} ${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
|
|
}
|
|
}
|