summaryrefslogtreecommitdiff
path: root/community/libgweather4/APKBUILD
blob: fccc8f68fd1ee909132bee11038fe1e8f8f624f2 (plain)
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
47
48
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Newbyte <newbie13xd@gmail.com>
pkgname=libgweather4
pkgver=4.0.0
pkgrel=0
pkgdesc="GNOME weather library"
url="https://wiki.gnome.org/Projects/LibGWeather"
arch="all"
license="LGPL-2.1-or-later"
depends="tzdata gsettings-desktop-schemas"
makedepends="
	geocode-glib-dev
	gi-docgen
	glib-dev
	gobject-introspection-dev
	libsoup-dev
	libxml2-dev
	meson
	py3-gobject3
	ttf-cantarell
	vala
	"
options="!check" # Fail due to musl locale support
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libgweather/${pkgver%.*}/libgweather-$pkgver.tar.xz"
builddir="$srcdir/libgweather-$pkgver"

build() {
	abuild-meson \
		-Dgtk_doc=true \
		-Denable_vala=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}


sha512sums="
1441b8996a53b277e9453d3fcf32448800c963f40c32542f9055362bc3188dcf2e706466133d53b3f1b6343dc97b15cf5eabe16b950e7c9451cb79eeef87a9c3  libgweather-4.0.0.tar.xz
"