void-packages/srcpkgs/lemoa/template

23 lines
767 B
Bash

# Template file for 'lemoa'
pkgname=lemoa
version=0.4.0
revision=1
build_style=meson
build_helper=rust
hostmakedepends="pkg-config cargo desktop-file-utils glib-devel gtk-update-icon-cache"
makedepends="rust-std gtk4-devel libglib-devel libadwaita-devel"
short_desc="Gtk client for Lemmy"
maintainer="Bnyro <bnyro@tutanota.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/lemmygtk/lemoa"
changelog="https://github.com/lemmygtk/lemoa/releases"
distfiles="https://github.com/lemmygtk/lemoa/releases/download/v${version}/lemoa-${version}.tar.xz"
checksum=dadfd2c7c61c66d9cc7caeebce28c865a0b8a1d2a1c8450f16471bdc72bfa5c2
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}