void-packages/srcpkgs/snapshot/template

23 lines
697 B
Bash

# Template file for 'snapshot'
pkgname=snapshot
version=46.0
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"
checksum=2a2f5103374293f2196400e3af606df0e115d5cfa57b095bac3084c08210e1b1
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}