diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 15:10:43 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | a5e366b4cc7ba603c885798c3611301a3f249508 (patch) | |
tree | 5c5c2fcd3cfbcb71d8862b040d699095b3a75c52 /community/mate-power-manager | |
parent | 9c9af699684d8b06f3c9888f6cffbb4f51d2c85d (diff) | |
download | aports-a5e366b4cc7ba603c885798c3611301a3f249508.tar.bz2 aports-a5e366b4cc7ba603c885798c3611301a3f249508.tar.xz |
community/mate-power-manager: added check(), modernize APKBUILD
Diffstat (limited to 'community/mate-power-manager')
-rw-r--r-- | community/mate-power-manager/APKBUILD | 41 |
1 files changed, 16 insertions, 25 deletions
diff --git a/community/mate-power-manager/APKBUILD b/community/mate-power-manager/APKBUILD index d0e8857c25..eb4e54dfd0 100644 --- a/community/mate-power-manager/APKBUILD +++ b/community/mate-power-manager/APKBUILD @@ -1,50 +1,41 @@ # Contributor: Alan Lacerda <alacerda@alpinelinux.org> -# Maintainer: +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=mate-power-manager pkgver=1.18.0 -pkgrel=0 +pkgrel=1 pkgdesc="A Power Manager for MATE" url="https://github.com/mate-desktop/mate-power-manager" arch="all" license="GPLv2" -depends="" -depends_dev="" makedepends="$depends_dev intltool gettext-dev itstool glib-dev libcanberra-dev dbus-glib-dev mate-desktop-dev dconf-dev libnotify-dev libunique-dev upower-dev libgnome-keyring-dev mate-panel-dev libcanberra-dev harfbuzz-dev" -install="" subpackages="$pkgname-doc $pkgname-lang" source="http://pub.mate-desktop.org/releases/${pkgver%.*}/$pkgname-$pkgver.tar.xz 0001-execinfo-patch.patch 0001-removing-backtrace.patch 0001-get_nprocs-patch.patch" - -_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 \ + --build=$CBUILD \ + --host=$CHOST \ --sysconfdir=/etc \ - --prefix=/usr \ - --with-gtk=2.0 \ - --disable-strict \ - make || return 1 + --prefix=/usr \ + --disable-strict + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } sha512sums="dabd0d6757171ce0556d65c8d2c4234a8fd7ab4e191caf45447d0797d779a83f23538c96b36d1f959f5fcb63e2305cd3ede6cb13d504e59a2daaf1e75e5a7bd1 mate-power-manager-1.18.0.tar.xz |