# Contributor: William Pitcock # Maintainer: Natanael Copa pkgname=libgweather pkgver=3.24.1 pkgrel=0 pkgdesc="GNOME weather library" url="http://www.gnome.org/" arch="all" license="LGPL" depends="tzdata" makedepends="gtk+3.0-dev libsoup-dev libxml2-dev glib-dev geocode-glib-dev gobject-introspection-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 } sha512sums="564464d7a18a8e0320871ea418b1163163941c950c5acea5ee65a087e44c4d81e019e2e3e4cb6751989f823cbb7c5691713d3dcef72aeaf6ff264e61b6f7b4b4 libgweather-3.24.1.tar.xz"