# Contributor: Alan Lacerda # Maintainer: Alan Lacerda 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"