aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-09-22 15:22:43 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-09-25 07:11:22 +0000
commit8031c8f9edfde04f3ea46b6d7a8a6a4e23634d9c (patch)
tree5bcad9563ec0679b73d45009a91936c9ea1ccab2
parentebb5549f8d48fdc62e2446ef5a6d979b26d69ffc (diff)
downloadaports-8031c8f9edfde04f3ea46b6d7a8a6a4e23634d9c.tar.bz2
aports-8031c8f9edfde04f3ea46b6d7a8a6a4e23634d9c.tar.xz
community/mate-user-guide: added check(), modernized APKBUILD
-rw-r--r--community/mate-user-guide/APKBUILD43
1 files changed, 17 insertions, 26 deletions
diff --git a/community/mate-user-guide/APKBUILD b/community/mate-user-guide/APKBUILD
index f1f5f0e727..10f2d021f9 100644
--- a/community/mate-user-guide/APKBUILD
+++ b/community/mate-user-guide/APKBUILD
@@ -2,43 +2,34 @@
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-user-guide
pkgver=1.18.0
-pkgrel=0
+pkgrel=1
pkgdesc="Documents targeted for end-users of MATE"
url="https://github.com/mate-desktop/mate-user-guide"
arch="noarch"
license="CC"
-depends=""
-depends_dev=""
-makedepends="$depends_dev itstool libxml2-utils intltool"
-install=""
-subpackages="$pkgname-doc"
+makedepends="itstool libxml2-utils intltool gettext-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
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --prefix=/usr
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="${pkgdir}" install || return 1
+ cd "$builddir"
+ make DESTDIR="${pkgdir}" install
}
sha512sums="023b6ee04764e8a6004ac1cba69427af33be22228d475666cfacd4aa2ef4b61df4c9e269e003345a7073ef5eb7b783850e4efd5b41356052e3b69860d6df054a mate-user-guide-1.18.0.tar.xz"