diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-21 21:06:25 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-21 21:06:25 +0000 |
commit | 25cb8a6c0af050db2c97cc222da6a667ab973c85 (patch) | |
tree | c42243019ab9bb41abe9ad699b71511eff87fc49 | |
parent | 5b6520abfb01ded1e95cfbb437c66fc1f42e3425 (diff) | |
download | aports-25cb8a6c0af050db2c97cc222da6a667ab973c85.tar.bz2 aports-25cb8a6c0af050db2c97cc222da6a667ab973c85.tar.xz |
community/mozo: modernize APKBUILD
-rw-r--r-- | community/mozo/APKBUILD | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/community/mozo/APKBUILD b/community/mozo/APKBUILD index 23f2e44259..1437181651 100644 --- a/community/mozo/APKBUILD +++ b/community/mozo/APKBUILD @@ -2,43 +2,30 @@ # Maintainer: Alan Lacerda <alacerda@alpinelinux.org> pkgname=mozo pkgver=1.18.0 -pkgrel=0 +pkgrel=1 pkgdesc="A menu editor for MATE" url="https://github.com/mate-desktop/mozo" arch="noarch" license="GPLv2" -depends="" -depends_dev="" -makedepends="$depends_dev intltool mate-menus-dev glib-dev py-gobject3-dev" -install="" +makedepends="intltool mate-menus-dev glib-dev py-gobject3-dev" subpackages="$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 \ --sysconfdir=/etc \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make } package() { - cd "$_builddir" - make DESTDIR="${pkgdir}" install || return 1 + cd "$builddir" + make DESTDIR="${pkgdir}" install } sha512sums="e333c572e5bc1d0905daed17eacd3dda10df5f80ed5b5b01ca3478d345a8c724e0161ccf51914f4982f16df71f252a3b08b194bec18e6aee05eb7af021369a12 mozo-1.18.0.tar.xz" |