File: build-set-project-name-to-railway-gtk.patch

package info (click to toggle)
railway-gtk 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,472 kB
  • sloc: sh: 153; xml: 111; makefile: 20
file content (45 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Date: Thu, 16 Nov 2023 17:48:24 +0100
Subject: Rename executable to `railway-gtk`

This is done by modifying Cargo.toml and meson.build so both the
executable and appdata folder names match the package name, and also
requires changing the .desktop file accordingly.

Forwarded: not-needed, Debian-only change
Last-Update: 2024-03-04
---
 Cargo.toml                                 | 2 +-
 data/de.schmidhuberj.DieBahn.desktop.in.in | 2 +-
 meson.build                                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
 [package]
-name = "diebahn"
+name = "railway-gtk"
 description = "Find all your travel information" # keep in sync with metainfo
 authors = ["Julian Schmidhuber <mobile@schmidhuberj.de>", "Markus Göllnitz <camelcasenick@bewares.it>"]
 homepage = "https://mobile.schmidhuberj.de/railway"
--- a/data/de.schmidhuberj.DieBahn.desktop.in.in
+++ b/data/de.schmidhuberj.DieBahn.desktop.in.in
@@ -4,7 +4,7 @@
 Name=Railway
 Comment=Find all your travel information
 StartupWMClass=Railway
-Exec=@bindir@/diebahn
+Exec=@bindir@/railway-gtk
 DBusActivatable=true
 X-Purism-FormFactor=Workstation;Mobile;
 Categories=GTK;GNOME;Utility;Maps;
--- a/meson.build
+++ b/meson.build
@@ -1,5 +1,5 @@
 project(
-  'diebahn',
+  'railway-gtk',
   'rust',
   version: '2.8.2',
   meson_version: '>= 0.59',