aboutsummaryrefslogtreecommitdiffstats
path: root/community/geocode-glib/APKBUILD
blob: 8a8a5b106f24e18a0ba6da8ffdb780b1177365c9 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geocode-glib
pkgver=3.20.1
pkgrel=0
pkgdesc="Geocoding helper library"
url="http://www.gnome.org/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev glib-dev gobject-introspection-dev intltool
	json-glib-dev libsoup-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.gnome.org/sources/geocode-glib/${pkgver%.*}/geocode-glib-$pkgver.tar.xz"

builddir="$srcdir"/geocode-glib-$pkgver
prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="4d9a4c666f525b8ae534be865c8b7681  geocode-glib-3.20.1.tar.xz"
sha256sums="669fc832cabf8cc2f0fc4194a8fa464cdb9c03ebf9aca5353d7cf935ba8637a2  geocode-glib-3.20.1.tar.xz"
sha512sums="0016b04928d3d7e9e3339bf1457d5ba7951af7af53b72a185f9cb3e92e9d1b1deb7ca11f95de1bcb0a3521a5b200ce3c25bb35eaf8bf15b81672846ec01b718f  geocode-glib-3.20.1.tar.xz"