aboutsummaryrefslogtreecommitdiffstats
path: root/community/geocode-glib/APKBUILD
blob: b00e0a0f98cafad4e1a376657e38ca7d51513bd4 (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
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=geocode-glib
pkgver=3.18.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/3.18/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="1d294d59bfc05027ccb9ff6708b63491  geocode-glib-3.18.1.tar.xz"
sha256sums="75d12bf82575449b8290b7463e8b6cf1b99f2c9942db6391a3d5b0bbb600c365  geocode-glib-3.18.1.tar.xz"
sha512sums="6add0d859d2366df54b35b0ada5661e0613e41f19cec386b48f00ae7d878f36d6b08f4feecce156cb04c8f81bee9e6ff60fbd06502d0f809e3017639f2bf595c  geocode-glib-3.18.1.tar.xz"