diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 13:13:36 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | 39f170f35447a114fc1b168d2c4264cacf0eb865 (patch) | |
tree | 6241b188aca73b9a9bf35c1d787af50518dd411f /community/libmateweather/APKBUILD | |
parent | bd7b7061899ac28b41ed186c5b58f171c773ff84 (diff) | |
download | aports-39f170f35447a114fc1b168d2c4264cacf0eb865.tar.bz2 aports-39f170f35447a114fc1b168d2c4264cacf0eb865.tar.xz |
community/libmateweather: upgrade to 1.19.1, added check(), modernized APKBUILD
Diffstat (limited to 'community/libmateweather/APKBUILD')
-rw-r--r-- | community/libmateweather/APKBUILD | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/community/libmateweather/APKBUILD b/community/libmateweather/APKBUILD index 96d12dfb23..f4712c21ad 100644 --- a/community/libmateweather/APKBUILD +++ b/community/libmateweather/APKBUILD @@ -1,46 +1,37 @@ # Contributor: Alan Lacerda <alacerda@alpinelinux.org> # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=libmateweather -pkgver=1.18.1 +pkgver=1.19.1 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="" +makedepends="libsoup-dev libtool intltool gtk+3.0-dev libxml2-utils tzdata" 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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ - --with-zoneinfo-dir \ - || return 1 - make || return 1 + --with-zoneinfo-dir + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } -sha512sums="0a48647bd7f0484ddb9956626eeeeafe9cdd6bdb107c8365cba67824a06a42976c1a48188fa11a81d9f8fa366cf809bb646f61f805efacfe328b468c0a5c35b7 libmateweather-1.18.1.tar.xz" +sha512sums="f9b60eb30858780872373190d1a40a3ad015750436b3200f635e43a37c9ab9b6f29d05945bc38a7a0a623a1e1b5e0db8a9174e7251eb8ff1a99194c3b203a5ed libmateweather-1.19.1.tar.xz" |