From 28e214a0f848bff4e7ecc6caa23e7f0957aaada9 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/railway/template diff --git a/srcpkgs/railway/template b/srcpkgs/railway/template new file mode 100644 index 00000000000000..a4fb8312c39420 --- /dev/null +++ b/srcpkgs/railway/template @@ -0,0 +1,23 @@ +# Template file for 'railway' +pkgname=railway +version=2.4.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" +changelog="https://gitlab.com/schmiddi-on-mobile/railway/-/raw/master/CHANGELOG.md" +distfiles="https://gitlab.com/schmiddi-on-mobile/railway/-/archive/${version}/railway-${version}.tar.gz" +checksum=8ccd58d5fd66c8e05183981a84db93913d8a69da7dc91040eb59113679a4d30c + +post_patch() { + if [ "$CROSS_BUILD" ]; then + vsed -i src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / rust_target /%" + fi +}