void-packages/srcpkgs/loupe/template

26 lines
811 B
Bash

# Template file for 'loupe'
pkgname=loupe
version=46.0
revision=1
build_style=meson
build_helper=rust
hostmakedepends="cargo desktop-file-utils gettext gtk4-update-icon-cache
itstool pkg-config"
makedepends="lcms2-devel libadwaita-devel libgweather-devel libseccomp-devel
rust-std"
depends="glycin-loaders"
short_desc="Simple image viewer for GNOME"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/loupe"
changelog="https://gitlab.gnome.org/GNOME/loupe/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/loupe/${version%.*}/loupe-${version}.tar.xz"
checksum=051aa45cf0ab362093fbf91863140be737db57bcb1f77bc1e00ab97255a252bd
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"
fi
}