From bc35d5f07ac8496f11440a487c741e3e1f36069a Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Sat, 30 Dec 2023 10:47:08 +0100 Subject: [PATCH] New package: railway-2.2.0 --- srcpkgs/railway/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/railway/template diff --git a/srcpkgs/railway/template b/srcpkgs/railway/template new file mode 100644 index 0000000000000..b0ff8ad8d43f9 --- /dev/null +++ b/srcpkgs/railway/template @@ -0,0 +1,22 @@ +# Template file for 'railway' +pkgname=railway +version=2.2.0 +revision=1 +build_style=meson +build_helper=rust +hostmakedepends="cargo desktop-file-utils gettext glib-devel + gtk-update-icon-cache pkg-config" +makedepends="libadwaita-devel rust-std" +short_desc="Travel with all your train information in one place" +maintainer="Eloi Torrents " +license="GPL-3.0-or-later" +homepage="https://gitlab.com/schmiddi-on-mobile/railway" +distfiles="https://gitlab.com/schmiddi-on-mobile/railway/-/archive/${version}/railway-${version}.tar.gz" +checksum=ed28cbfc8c2fa73187f85b2ba941e63226bb2adce8255448e50ff6fcf25333f4 + +post_patch() { + if [ "$CROSS_BUILD" ]; then + vsed -i src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / rust_target /%" + fi +}