aports/community/libwacom/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
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
2025-05-09 20:48:14 +00:00

57 lines
1.4 KiB
Text

# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=libwacom
pkgver=2.15.0
pkgrel=0
pkgdesc="Library to help implement Wacom tablet settings"
url="https://github.com/linuxwacom/libwacom/wiki"
arch="all"
license="MIT"
depends="eudev"
makedepends="
glib-dev
libevdev-dev
libgudev-dev
meson
py3-libevdev
py3-pytest
py3-udev
"
checkdepends="bash findutils diffutils libxml2-dev"
subpackages="
$pkgname-dev
$pkgname-doc
$pkgname-udev::noarch
"
install="$pkgname.post-install $pkgname.post-upgrade"
source="https://github.com/linuxwacom/libwacom/archive/libwacom-$pkgver/libwacom-$pkgver.tar.gz
0001-udevadm.patch
"
builddir="$srcdir/libwacom-libwacom-$pkgver"
options="!check" # fails
build() {
abuild-meson \
-Dtests="$(want_check && echo enabled || echo disabled)" \
. output
meson compile -C output
}
check() {
meson test --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
udev() {
install_if="$pkgname=$pkgver-r$pkgrel eudev"
amove usr/lib/udev
}
sha512sums="
f38ad476f34839fe519849efd3cc2b179ebc3e181bb22fb4581dbd9d3720a472244c377fe65f8bff63cbc4f25c1539e7c88f406ee47444499f7d85258ed88ca1 libwacom-2.15.0.tar.gz
1f7478f5c66def7f5678607d24fdaa50830716e7230aa4305d2d348363ad5f8dd757b9568e7de16889a306ef53492399f7d772cd2f0d6106addbddf7e4a24cbc 0001-udevadm.patch
"