mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 21:04:46 +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
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# Contributor: k0r10n <k0r10n.dev@gmail.com>
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
pkgname=i3status
|
|
pkgver=2.15
|
|
pkgrel=0
|
|
pkgdesc="Generates status bar for dzen2, xmobar or similar"
|
|
url="https://i3wm.org/i3status/"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="alsa-lib-dev asciidoc meson confuse-dev libnl3-dev linux-headers yajl-dev xmlto"
|
|
checkdepends="perl grep"
|
|
subpackages="$pkgname-doc"
|
|
source="https://i3wm.org/i3status/i3status-$pkgver.tar.xz
|
|
tests.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# FIXME failing tests
|
|
rm -r testcases/020-percentliteral-time testcases/020-percentliteral-volume
|
|
if [ "$CARCH" = s390x ]; then
|
|
rm -r testcases/01[01]-cpu-usage testcases/022-cpu-usage-tenth-cpu
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Dpulseaudio=false \
|
|
-Dmans=true \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
fc099abb6740a4989a1797bc298e57ed0c824598a3fac50d497060af53079a9d350bfc7748e75fa4194db05d3373254a03e94611f0a97a2ffe62cc023b2a2260 i3status-2.15.tar.xz
|
|
eede76b44c0862946a3d26fccaa3af173d806f7dbbcfd53fed9054eff1888cfbea5335f9aabc9ef9a4c155315368a3613eed68b5eba7786b1abdd5cb4d82c685 tests.patch
|
|
"
|