diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-22 15:00:25 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-25 07:11:21 +0000 |
commit | 3331c9baa6eff565509fe3f18f22ce4e9fb91098 (patch) | |
tree | 0c13bbc620c06cd7a9d2c48737d98ac2813d5772 /community/mate-menus | |
parent | d297952ea50821d964bb120dc5813786a5cfcf75 (diff) | |
download | aports-3331c9baa6eff565509fe3f18f22ce4e9fb91098.tar.bz2 aports-3331c9baa6eff565509fe3f18f22ce4e9fb91098.tar.xz |
community/mate-menus: added check(), modernize APKBUILD
Diffstat (limited to 'community/mate-menus')
-rw-r--r-- | community/mate-menus/APKBUILD | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/community/mate-menus/APKBUILD b/community/mate-menus/APKBUILD index 8520e06b92..64a5a21424 100644 --- a/community/mate-menus/APKBUILD +++ b/community/mate-menus/APKBUILD @@ -2,43 +2,35 @@ # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=mate-menus pkgver=1.18.0 -pkgrel=0 +pkgrel=1 pkgdesc="The libmate-menu library, the layout configuration files for the MATE menu, as well as a simple menu editor" url="https://github.com/mate-desktop/mate-menus" arch="all" license="GPL2" depends="mate-common" -depends_dev="" -makedepends="$depends_dev libtool intltool glib-dev" -install="" +makedepends="libtool intltool glib-dev" 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 \ --sysconfdir=/etc \ --host=$CHOST \ - --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="0c9d8162f67208cecead4e2dcaf4eddf63b10484396e1b28381d98607de007c5aaf1126f36400183d8545ea21c6273f5df48b4f47847fba2470d92d9943a123b mate-menus-1.18.0.tar.xz" |