From a276be6f8569a5e9f9d588008a5bb6969395dffa Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 3 May 2017 09:45:47 +0000 Subject: community/libqmi: add check(), exclude on x86 --- community/libqmi/APKBUILD | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'community/libqmi/APKBUILD') diff --git a/community/libqmi/APKBUILD b/community/libqmi/APKBUILD index 8c58c436a79..9148cd44533 100644 --- a/community/libqmi/APKBUILD +++ b/community/libqmi/APKBUILD @@ -2,13 +2,25 @@ # Maintainer: Stuart Cardall 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() { -- cgit v1.2.3