diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 15:04:38 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | 9c9af699684d8b06f3c9888f6cffbb4f51d2c85d (patch) | |
tree | 9b3299c380bd2443244577166ea528043348bcfe /community/mate-screensaver/APKBUILD | |
parent | af12bf4ce0e9f2e1d4fccf5e44249f5b6c356d68 (diff) | |
download | aports-9c9af699684d8b06f3c9888f6cffbb4f51d2c85d.tar.bz2 aports-9c9af699684d8b06f3c9888f6cffbb4f51d2c85d.tar.xz |
community/mate-screensaver: upgrade to 1.19.0,added check(), modernize APKBUILD
Diffstat (limited to 'community/mate-screensaver/APKBUILD')
-rw-r--r-- | community/mate-screensaver/APKBUILD | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/community/mate-screensaver/APKBUILD b/community/mate-screensaver/APKBUILD index 0b5e1deef3..1c15969975 100644 --- a/community/mate-screensaver/APKBUILD +++ b/community/mate-screensaver/APKBUILD @@ -1,45 +1,36 @@ # Contributor: Alan Lacerda <alacerda@alpinelinux.org> -# Maintainer: +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=mate-screensaver -pkgver=1.18.1 +pkgver=1.19.0 pkgrel=0 pkgdesc="A screen saver and locker for MATE" url="https://github.com/mate-desktop/mate-screensaver" arch="all" license="GPLv2" -depends="" -depends_dev="" -makedepends="$depends_dev intltool glib-dev libxscrnsaver-dev gtk+2.0-dev +makedepends="intltool glib-dev libxscrnsaver-dev gtk+3.0-dev mate-desktop-dev dbus-glib-dev mate-menus-dev dconf-dev" -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 -} +builddir="$srcdir/$pkgname-$pkgver/" build() { - cd "$_builddir" + cd "$builddir" ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --with-gtk=2.0 \ + --build=$CBUILD \ + --host=$CHOST \ --sysconfdir=/etc \ - --prefix=/usr || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } -sha512sums="6e41a44e0d12af6080e69461a86b66b8ac4696dcf2b140d8e31b07945f4ac8848c872e9b1c07a6cf706042d3254567848c177a726038a862514471104242e807 mate-screensaver-1.18.1.tar.xz" +sha512sums="57ebf73eb86366ba4c3f712bbac174c43f6b697ec9a10c98dc196bcb5cdc47184299663d909e73b4f38ccba27caa03bf419b86c370525c81b9b3120921490108 mate-screensaver-1.19.0.tar.xz" |