void-packages/srcpkgs/lemoa/template

23 lines
767 B
Bash

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