From 45d0df20ce8a1a5a3b5a9587ef37704c86074179 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Tue, 5 Mar 2024 11:07:17 -0500 Subject: [PATCH] citations: update to 0.6.2 --- srcpkgs/citations/template | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/srcpkgs/citations/template b/srcpkgs/citations/template index a4162c34544cf3..531693dee5d26e 100644 --- a/srcpkgs/citations/template +++ b/srcpkgs/citations/template @@ -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 " 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 }