aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgweather/APKBUILD
blob: b27b9aa11c5a9042874964ab9aa55ab1c64b25f6 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgweather
pkgver=3.34.0
pkgrel=1
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="gtk+3.0-dev libsoup-dev libxml2-dev vala
	glib-dev geocode-glib-dev gobject-introspection-dev
	libxml2-utils gtk-doc glade-dev meson ninja"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/libgweather/${pkgver%.*}/libgweather-$pkgver.tar.xz
	fix-test.patch
	"

build() {
	meson \
		--prefix=/usr \
		--buildtype=release \
		--sysconfdir=/etc \
		--buildtype=release \
		-Dgtk_doc=true \
		-Denable_vala=true \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="44451837039965251d86f6f538c943a771ab1944d9190ddb2c6bdb34b3ed0e33756c537e84f24487fd5f28b107e8d3af05a6c20a68f83734ac26ff69a8bd0aba  libgweather-3.34.0.tar.xz
ad9e4bf0d7cc12dfab6ed2870c4f7d52f78b04eaa3cd440f8f85da67106060854364f213d2052ce77158ac2e54be9e33a206bf1dfb634a9bdc17d98505588de7  fix-test.patch"