mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 22:04:21 +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
66 lines
1.7 KiB
Text
66 lines
1.7 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Contributor: Danct12 <danct12@disroot.org>
|
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: team/phosh <newbyte@postmarketos.org>
|
|
pkgname=squeekboard
|
|
pkgver=1.43.1
|
|
pkgrel=0
|
|
pkgdesc="The final Phosh keyboard"
|
|
# loongarch64: nix error: sys/ioctl/linux.rs:51: could not find `consts` in `self`
|
|
# s390x: fails with nix/libc errors
|
|
arch="all !s390x !loongarch64"
|
|
url="https://gitlab.gnome.org/World/Phosh/squeekboard"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="
|
|
bash
|
|
cargo
|
|
feedbackd-dev
|
|
glib-dev
|
|
gnome-desktop-dev
|
|
gtk+3.0-dev
|
|
libbsd-dev
|
|
meson
|
|
ninja
|
|
rust
|
|
wayland-dev
|
|
wayland-protocols
|
|
"
|
|
checkdepends="xvfb-run"
|
|
options="net"
|
|
subpackages="$pkgname-lang"
|
|
source="https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v$pkgver/squeekboard-v$pkgver.tar.gz
|
|
sm.puri.OSK0.desktop
|
|
"
|
|
builddir="$srcdir/$pkgname-v$pkgver"
|
|
|
|
provides="phosh-keyboard"
|
|
provider_priority=10
|
|
replaces="phosh phosh-osk-stub"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Dstrict=false \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
case "$CARCH" in
|
|
riscv64) xvfb-run -a meson test --print-errorlogs -C output -t 10 ;;
|
|
*) xvfb-run -a meson test --print-errorlogs -C output ;;
|
|
esac
|
|
}
|
|
|
|
package() {
|
|
depends="!phosh-osk-stub"
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
|
|
install -D -m644 "$srcdir"/sm.puri.OSK0.desktop \
|
|
"$pkgdir"/usr/share/applications/sm.puri.OSK0.desktop
|
|
}
|
|
|
|
sha512sums="
|
|
34bf9ab4bf22371e2f7aa7111ba0b2047a4cb00f823deeeb43fc64e5b0d7f94fd288fa70f7931488f808bf22c53a404c8ca4325fc478799ed139bb99553ca25b squeekboard-v1.43.1.tar.gz
|
|
39072909e750ba3a635b4245f45d969129e5e846aaa83af7530b265ccf31b5758f03520ebdb19dfe7a3494a6203d543addae1c9afba51ac5aafec044683e4172 sm.puri.OSK0.desktop
|
|
"
|