aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmateweather/APKBUILD
blob: 0b306514a2a3ab617d775aefff862ceb2ded7b53 (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmateweather
pkgver=1.18.0
pkgrel=0
pkgdesc="A library to access weather information from online services for numerous locations"
url="https://github.com/mate-desktop/libmateweather"
arch="all"
license="GPL2"
depends="mate-common"
depends_dev=""
makedepends="$depends_dev libsoup-dev libtool intltool gtk+3.0-dev
	libxml2-utils"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/${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 \
		--with-zoneinfo-dir \
		|| return 1
	make || return 1
}

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

sha512sums="505ec9b273fe5e4b50f5ea5cc470b3932fdde13e5b1687a3a8ec4dfe247cd56a2339d9265672a7de3bde55fe1410701ee6d5d10c459a7b991c60f4285474050d  libmateweather-1.18.0.tar.xz"