aports/community/loupe/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

44 lines
1 KiB
Text

# Contributor: Newbyte <newbyte@postmarketos.org>
# Maintainer: team/gnome <newbyte@postmarketos.org>
pkgname=loupe
pkgver=48.1
pkgrel=0
pkgdesc="Image viewer application written with GTK 4 and Rust"
url="https://gitlab.gnome.org/GNOME/loupe"
# s390x: Multple definitions in Cargo dependency Nix 0.26.2
arch="all !s390x"
license="GPL-3.0-or-later"
depends="glycin-loaders"
makedepends="
cargo
desktop-file-utils
glib-dev
gtk4.0-dev
itstool
lcms2-dev
libadwaita-dev
libgweather4-dev
libseccomp-dev
meson
"
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/GNOME/loupe/-/archive/$pkgver/loupe-$pkgver.tar.gz"
build() {
abuild-meson . output
meson compile -C output
}
check() {
# riscv is slow
meson test -t 2 --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
240ce40307c61a385405b2dfdbb180e1d110d78fdbd2c52024776a4a5624b28cdf5c43f17e8c7e7c866ae4cf6ee94bfd924ff5b8787a055634959d237a55ecee loupe-48.1.tar.gz
"