mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
meson 1.7.0 and later don't include test build targets in the default build target. With --no-rebuild the test targets aren't build at all. Removing --no-rebuild shouldn't cause any false rebuilds since the files aren't changed between the build() and check() step. Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891 Ref https://github.com/mesonbuild/meson/pull/10413
57 lines
1.2 KiB
Text
57 lines
1.2 KiB
Text
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
|
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=libqmi
|
|
pkgver=1.36.0
|
|
pkgrel=0
|
|
pkgdesc="QMI modem protocol helper library"
|
|
url="https://www.freedesktop.org/wiki/Software/libqmi"
|
|
arch="all"
|
|
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
|
|
makedepends="
|
|
bash-completion-dev
|
|
glib-dev
|
|
gobject-introspection-dev
|
|
help2man
|
|
libgudev-dev
|
|
libmbim-dev
|
|
libqrtr-glib-dev
|
|
linux-headers
|
|
meson
|
|
python3
|
|
"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
qmi-utils
|
|
"
|
|
source="https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/archive/$pkgver/libqmi-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
local tests=$(meson test --list -C output)
|
|
case "$CARCH" in
|
|
s390x) tests=${tests//test-message} ;;
|
|
esac
|
|
meson test --print-errorlogs -C output $tests
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="$pkgdesc (CLI utilities)"
|
|
|
|
amove usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
a98c0e302aad09ffbf94172f840355ffe197c32c29598ad70b582a29af34a2dcbc6a3dd7a94e9a9145e9ba03d90ee2cb70dec6918935ea83dd08c053fbf2dc21 libqmi-1.36.0.tar.gz
|
|
"
|