aboutsummaryrefslogtreecommitdiffstats
path: root/community/libqmi/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-05-03 09:45:47 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-05-03 09:45:56 +0000
commita276be6f8569a5e9f9d588008a5bb6969395dffa (patch)
treec65d094fc025c560045bc121f8959d2e166d43ef /community/libqmi/APKBUILD
parenta12e342d2a8ab257635ef89f47c75e0315e979c1 (diff)
downloadaports-a276be6f8569a5e9f9d588008a5bb6969395dffa.tar.bz2
aports-a276be6f8569a5e9f9d588008a5bb6969395dffa.tar.xz
community/libqmi: add check(), exclude on x86
Diffstat (limited to 'community/libqmi/APKBUILD')
-rw-r--r--community/libqmi/APKBUILD23
1 files changed, 18 insertions, 5 deletions
diff --git a/community/libqmi/APKBUILD b/community/libqmi/APKBUILD
index 8c58c436a7..9148cd4453 100644
--- a/community/libqmi/APKBUILD
+++ b/community/libqmi/APKBUILD
@@ -2,13 +2,25 @@
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libqmi
pkgver=1.18.0
-pkgrel=0
+pkgrel=1
pkgdesc="QMI modem protocol helper library"
url="http://www.freedesktop.org/wiki/Software/libqmi"
arch="all"
license="GPL2"
makedepends="gtk-doc python2 glib-dev libgudev-dev linux-headers"
-options="!check"
+_options=
+# FIXME: check fails on excluded arches
+case "$CARCH" in
+ "ppc64le")
+ options="$_options !check"
+ ;;
+ "x86")
+ options="$_options !check"
+ ;;
+ *)
+ options="$_options"
+ ;;
+esac
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz
musl-compat-canonicalize_file_name.patch
@@ -25,10 +37,11 @@ build() {
--enable-more-warnings=yes \
|| return 1
make || return 1
+}
- if [ "$CARCH" != "ppc64le" ] ; then
- make check || return 1
- fi
+check() {
+ cd "$builddir"
+ make check
}
package() {