aboutsummaryrefslogtreecommitdiffstats
path: root/community/libgweather/APKBUILD
blob: 823e7ef9744dce13d07d80ae1f12c285d0efb6e3 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=libgweather
pkgver=3.18.1
pkgrel=0
pkgdesc="GNOME weather library"
url="http://www.gnome.org/"
arch="all"
license="LGPL"
depends=
makedepends="gtk+3.0-dev libsoup-dev libxml2-dev glib-dev geocode-glib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

_builddir="${srcdir}/${pkgname}-${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 \
		|| return 1
	make || return 1
}

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

md5sums="0a4bd5421c9cd2d845d0a91c8caa6117  libgweather-3.18.1.tar.xz"
sha256sums="94b2292f8f7616e2aa81b1516befd7b27682b20acecbd5d656b6954990ca7ad0  libgweather-3.18.1.tar.xz"
sha512sums="1fc6fda3610bcb4efd0eae57ce8706f126301f5d8399ff765d00c9cc8a513150d07cd098bc53e372b338b7801bd003d651cea0f5832edb990197d456bc89370f  libgweather-3.18.1.tar.xz"