38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'libgweather'
|
|
pkgname=libgweather
|
|
version=3.28.2
|
|
revision=2
|
|
build_style=meson
|
|
configure_args="-Denable_vala=$(vopt_if vala true false)
|
|
-Denable_gir=$(vopt_if gir true false) -Dtest=false
|
|
-Dzoneinfo_dir=/usr/share/zoneinfo"
|
|
hostmakedepends="glib-devel $(vopt_if gir gobject-introspection)
|
|
intltool pkg-config $(vopt_if vala vala-devel)"
|
|
makedepends="geocode-glib-devel gtk+3-devel libsoup-gnome-devel"
|
|
checkdepends="tzdata"
|
|
short_desc="GNOME Weather information access library"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/LibGWeather"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=081ce81653afc614e12641c97a8dd9577c524528c63772407ae2dbcde12bde75
|
|
|
|
build_options="gir vala"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir vala"
|
|
fi
|
|
|
|
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
|
|
}
|
|
}
|