aboutsummaryrefslogtreecommitdiffstats
path: root/community/geocode-glib/APKBUILD
blob: 5e3627da5e44641003fb265aad5b09afb0a11ef0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geocode-glib
pkgver=3.26.0
pkgrel=0
pkgdesc="Geocoding helper library"
url="https://www.gnome.org/"
arch="all"
license="LGPL-2.0-or-later"
depends=""
depends_dev=""
makedepends="$depends_dev glib-dev gobject-introspection-dev intltool
	json-glib-dev libsoup-dev meson ninja gtk-doc"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/geocode-glib/${pkgver%.*}/geocode-glib-$pkgver.tar.xz"

builddir="$srcdir"/geocode-glib-$pkgver

build() {
	mkdir -p "$builddir"/build
	cd "$builddir"/build
	meson \
		--prefix=/usr \
		--buildtype=release \
		--sysconfdir=/etc \
		-Denable-installed-tests=false \
		..
	ninja
}

check() {
	cd "$builddir"/build
	ninja test
}

package() {
	cd "$builddir"/build
	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	DESTDIR="$pkgdir" ninja install
}

sha512sums="d0924673b669a29d04ad5f1d70797e98b67af3bc85edd8870d21d22d18ec8f2b93a13f94226e295ccb3c6e83d1545bdd2361ebacdbb1928c06b8beed36759838  geocode-glib-3.26.0.tar.xz"