From db10f2b967f24f74acce23509f70e9f63c2591de Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Fri, 22 Sep 2017 15:02:13 +0000 Subject: community/mate-polkit: added check(), modernize APKBUILD --- community/mate-polkit/APKBUILD | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'community/mate-polkit/APKBUILD') diff --git a/community/mate-polkit/APKBUILD b/community/mate-polkit/APKBUILD index df2f7b22dd..7232bd2906 100644 --- a/community/mate-polkit/APKBUILD +++ b/community/mate-polkit/APKBUILD @@ -2,44 +2,36 @@ # Maintainer: Alan Lacerda pkgname=mate-polkit pkgver=1.18.1 -pkgrel=0 +pkgrel=1 pkgdesc="MATE Authentication Agent for PolicyKit" url="https://github.com/mate-desktop/mate-polkit" arch="all" license="GPL2" depends="mate-common" -depends_dev="" -makedepends="$depends_dev polkit-dev libtool intltool gtk+3.0-dev +makedepends="polkit-dev libtool intltool gtk+3.0-dev gobject-introspection-dev" -install="" subpackages="$pkgname-dev $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 \ --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="086723b0b0c14a6b1ea77e1f0a294546ef3e44d42a460e424b22c92e8f962bf55c9c379600fb6642be60167ef07f07835c2eb939232941051aa397af805e79fa mate-polkit-1.18.1.tar.xz" -- cgit v1.2.3