void-packages/srcpkgs/snapshot/template

23 lines
697 B
Bash
Raw Normal View History

2024-02-16 13:26:10 +01:00
# Template file for 'snapshot'
pkgname=snapshot
2024-03-20 11:49:56 +01:00
version=46.0
2024-02-16 13:26:10 +01:00
revision=1
build_style=meson
build_helper=rust
hostmakedepends="cargo desktop-file-utils gettext glib-devel
gtk-update-icon-cache pkg-config"
makedepends="libadwaita-devel rust-std"
short_desc="Take pictures and videos"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/snapshot"
distfiles="${GNOME_SITE}/snapshot/${version%.*}/snapshot-${version}.tar.xz"
2024-03-20 11:49:56 +01:00
checksum=2a2f5103374293f2196400e3af606df0e115d5cfa57b095bac3084c08210e1b1
2024-02-16 13:26:10 +01:00
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}