diff options
Diffstat (limited to 'community/libqmi/APKBUILD')
-rw-r--r-- | community/libqmi/APKBUILD | 23 |
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() { |