citations: update to 0.6.2

This commit is contained in:
cinerea0 2024-03-05 11:07:17 -05:00 committed by cinerea0
parent ef98bc19c2
commit 698efee6e4

View file

@ -1,7 +1,7 @@
# Template file for 'citations'
pkgname=citations
version=0.5.1
revision=2
version=0.6.2
revision=1
build_style=meson
build_helper=rust
hostmakedepends="glib-devel gettext rust cargo pkg-config
@ -13,19 +13,11 @@ maintainer="Alex Childs <misuchiru03+github@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/citations"
distfiles="https://gitlab.gnome.org/World/citations/-/archive/${version}/citations-${version}.tar.gz"
checksum=77ac6a7cc442de74eccfc3f07687803cd1feca2da348753eddd34404b94bf253
checksum=26bf22212abebc100840e9b6c62c50a32949a8b0d0fefbaf0834bed48f978d82
# Allows the cross build to know where the file is placed--build.ninja does not account for cross build
pre_build() {
if [ "${CROSS_BUILD}" ]; then
vsed -i build/build.ninja -e 's, && cp src/release/citations src/citations,,'
fi
}
# Take the cross-build folder into account when copying the file for the install
post_build() {
pwd
if [ "${CROSS_BUILD}" ]; then
cp -r build/src/*-linux-*/release/citations build/src/citations
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}