summaryrefslogtreecommitdiff
path: root/user/libgweather/APKBUILD
blob: 316b940902662150e8b70a2fafc3758c7b8b2588 (plain) (blame)
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
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=libgweather
pkgver=4.4.0
pkgrel=0
pkgdesc="Gnome weather library"
url="https://gnome.pages.gitlab.gnome.org/libgweather/"
arch="all"
options="!check"  # broken tests
license="GPL-2.0-only AND LGPL-2.1-only AND LGPL-2.0-only AND BSD-3-Clause"
depends=""
makedepends="meson ninja geocode-glib-dev gi-docgen glib-dev
	gobject-introspection-dev json-glib-dev libsoup3-dev libxml2-dev
	py3-pygobject vala-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"

build() {
	meson setup \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		--wrap-mode=nofallback \
		. output
	meson compile -C output
}

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

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

sha512sums="dd232d36b168132a7c7cf06ffff16e88eb6e3e9e003e39b975df3d294ada401ab7d34de386dcc53452de6b0f8c68ff7f0cf6a94492e353828e00d4a1204b5d00  libgweather-4.4.0.tar.xz"