Subject: [alpine-aports] [PATCH] testing/girara: Add check(), remove returns

From: Jean-Louis Fuchs <[email-masked]>
Date: Thu, 23 Mar 2017 13:44:57 +0100

---
 testing/girara/APKBUILD | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/testing/girara/APKBUILD b/testing/girara/APKBUILD
index 791704ceaf..9d50b97bf6 100644
--- a/testing/girara/APKBUILD
+++ b/testing/girara/APKBUILD
@@ -9,27 +9,32 @@ pkgdesc="girara - gtk user interface that focuses on simplicity and minimalism"
 url="https://pwmt.org/projects/girara/"
 arch="all"
 license="zlib"
-makedepends="gtk+3.0-dev libnotify-dev intltool doxygen check-dev ncurses"
+# dbus for tests only
+makedepends="gtk+3.0-dev libnotify-dev intltool doxygen check-dev ncurses dbus"
 subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
 source="https://pwmt.org/projects/girara/download/girara-$pkgver.tar.gz"
 
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
-	make -C "$_builddir" COLOR=0 || return 1
-	make -C "$_builddir/doc" COLOR=0 || return 1
+	make -C "$builddir" COLOR=0
+	make -C "$builddir/doc" COLOR=0
 }
 
 package() {
 	make PREFIX=/usr DESTDIR="$pkgdir" \
-		-C "$_builddir" install || return 1
+		-C "$builddir" install
 }
 
 doc() {
 	pkgdesc="girara - gtk user interface that focuses on simplicity and minimalism (documentation)"
-	_docdir="$subpkgdir"/usr/share/doc/$pkgname/
+	local _docdir="$subpkgdir"/usr/share/doc/$pkgname/
 	mkdir -p "$_docdir"
-	cp -r "$_builddir"/doc/build/html/* "$_docdir"
+	cp -r "$builddir"/doc/build/html/* "$_docdir"
+}
+
+check () {
+	make -C "$builddir" test
 }
 
 sha512sums="4229565b8a5fad1ecbf42e4f3f852644964a7d5c90154dab9b7dcb5ccd5f25731911452472bbeb28927d1e30d4df6ed066926e11c6a73f0fd5740570493a036f  girara-0.2.7.tar.gz"
-- 
2.11.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---