From 19028df42f12a9ee8b66292f2369bdd20a24e364 Mon Sep 17 00:00:00 2001 From: Alex Childs Date: Thu, 6 Oct 2022 00:35:52 -0500 Subject: [PATCH] New Package: citations-0.5.1 Closes #38770 --- srcpkgs/citations/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/citations/template diff --git a/srcpkgs/citations/template b/srcpkgs/citations/template new file mode 100644 index 000000000000..feb839767cd5 --- /dev/null +++ b/srcpkgs/citations/template @@ -0,0 +1,32 @@ +# Template file for 'citations' +pkgname=citations +version=0.5.1 +revision=1 +build_style=meson +build_helper=rust +hostmakedepends="glib-devel gettext rust cargo pkg-config + gtk-update-icon-cache gtk4-update-icon-cache desktop-file-utils" +makedepends="libadwaita-devel gtk4-devel openssl-devel + rust-std poppler-glib-devel gtksourceview5-devel" +short_desc="Manage your bibliography using BibTeX format" +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 +_meson_builddir="${XBPS_BUILDDIR}/citations-${version}/build" + +# 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 + fi +}