mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03: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
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
pkgname=umockdev
|
|
pkgver=0.19.1
|
|
pkgrel=0
|
|
pkgdesc="Mock hardware devices for creating unit tests and bug reporting"
|
|
arch="all"
|
|
url="https://github.com/martinpitt/umockdev"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="eudev-dev gtk-doc meson vala libpcap-dev gobject-introspection-dev"
|
|
checkdepends="gphoto2 libgudev-dev py3-gobject3 usbutils xz"
|
|
if [ "$CARCH" != "ppc64le" ]; then
|
|
checkdepends="$checkdepends evtest"
|
|
fi
|
|
options="!check" # fail on builders for some reason, works on CI and locally (and for upstream)
|
|
source="https://github.com/martinpitt/umockdev/releases/download/$pkgver/umockdev-$pkgver.tar.xz"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Dgtk_doc=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
3e7c892d0999b6a61f802445851d83bff7c5a2ddc9d0b673bebe2a130b3782d7788082f21bf3c4064e3bbf867c43cde9a583bdd54e2eea467ee430c8b5d4db1c umockdev-0.19.1.tar.xz
|
|
"
|