-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
46 lines (43 loc) · 1.51 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Template file for 'libgweather'
pkgname=libgweather
reverts="40.0_1"
version=4.4.2
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir enable_vala) $(vopt_bool gir introspection)
$(vopt_bool gtk_doc gtk_doc) -Dzoneinfo_dir=/usr/share/zoneinfo"
hostmakedepends="glib-devel gettext pkg-config python3-gobject-devel
$(vopt_if gir vala) $(vopt_if gtk_doc gi-docgen)"
makedepends="geocode-glib-devel libsoup3-devel json-glib-devel libxml2-devel"
depends="tzdata"
short_desc="GNOME Weather information access library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/LibGWeather"
changelog="https://gitlab.gnome.org/GNOME/libgweather/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/libgweather/${version%.*}/libgweather-${version}.tar.xz"
checksum=a6e427b4770ada48945f3aa906af710fc833cff0d42df91f1828302740d794ec
build_options="gir gtk_doc"
build_options_default="gir gtk_doc"
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/tests/test_libgweather.c
}
libgweather-devel_package() {
depends="${makedepends} ${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
vmove usr/share/vala
fi
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/doc
fi
}
}