diff options
author | Jean-Louis Fuchs <ganwell@fangorn.ch> | 2017-03-23 13:44:57 +0100 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-23 15:50:12 +0000 |
commit | ada5d0026668339a4c85fed583087f2b8286e774 (patch) | |
tree | 9bde324d73ab6bec32ac9934071dab630dc4181c /testing | |
parent | 6751306975dd23c3318042f01bf92b63a39defef (diff) | |
download | aports-ada5d0026668339a4c85fed583087f2b8286e774.tar.bz2 aports-ada5d0026668339a4c85fed583087f2b8286e774.tar.xz |
testing/girara: Add check(), remove returns
Diffstat (limited to 'testing')
-rw-r--r-- | testing/girara/APKBUILD | 19 |
1 files 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" |