aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmateweather/APKBUILD
blob: 3c30b09939d9d2a1998dd5d3dc9034e790dd9208 (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
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=libmateweather
pkgver=1.9.90
pkgrel=1
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+2.0-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://pub.mate-desktop.org/releases/1.9/$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
	find "$pkgdir" -name \*.la -delete
}

md5sums="a73d3970f49884bcfdb933089984c466  libmateweather-1.9.90.tar.xz"
sha256sums="0b35a00a24e78cec67f096da0fa54625a84129159c263533aa8d61bcb154378d  libmateweather-1.9.90.tar.xz"
sha512sums="c27ef43a2fb1c73ed57480f25c4ed4d518b37697913de4bf8003fdc0400a07b632d342bfaa0397bc85d2b112c01ffa908467d9be0c77949b864f685730b76c91  libmateweather-1.9.90.tar.xz"