From: hervyqa <hervyqa@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] sauerbraten: add application menu
Date: Sat, 26 Mar 2022 07:27:02 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36357@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 937 bytes --]
There is a new pull request by hervyqa against master on the void-packages repository
https://github.com/hervyqa/void-packages sauerbraten
https://github.com/void-linux/void-packages/pull/36357
sauerbraten: add application menu
[Sauerbraten](http://sauerbraten.org/) is a free multiplayer & singleplayer first person shooter, the successor of the [Cube](http://www.cubeengine.com/) FPS.
`sauerbraten` does not provide a desktop menu, so it can only be opened via the cli.
```
➜ ~ xbps-query --regex -Rf sauerbraten
/usr/bin/sauer_client
/usr/bin/sauerbraten
```
#### Testing the changes
- I tested the changes in this PR: **briefly** (testing by adding .desktop manually. not build package)
![Screenshot_20220326_132604](https://user-images.githubusercontent.com/45872139/160227628-63cd0e47-361f-4cd6-a7e8-795038c5ea19.png)
A patch file from https://github.com/void-linux/void-packages/pull/36357.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sauerbraten-36357.patch --]
[-- Type: text/x-diff, Size: 1547 bytes --]
From c6b7ea6ff7e22039c312c0d0edbb4fbaee4e31b4 Mon Sep 17 00:00:00 2001
From: Hervy Qurrotul Ainur Rozi <hervyqa@pm.me>
Date: Sat, 26 Mar 2022 13:02:52 +0700
Subject: [PATCH] sauerbraten: add application menu
---
srcpkgs/sauerbraten/files/sauerbraten.desktop | 10 ++++++++++
srcpkgs/sauerbraten/template | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/sauerbraten/files/sauerbraten.desktop
diff --git a/srcpkgs/sauerbraten/files/sauerbraten.desktop b/srcpkgs/sauerbraten/files/sauerbraten.desktop
new file mode 100644
index 000000000000..ef04888dd6ba
--- /dev/null
+++ b/srcpkgs/sauerbraten/files/sauerbraten.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=Sauerbraten
+Comment=Free multiplayer & singleplayer first person shooter
+Exec=sauerbraten %u
+Icon=sauerbraten
+Terminal=false
+StartupNotify=false
+Categories=Application;Game;ActionGame;
diff --git a/srcpkgs/sauerbraten/template b/srcpkgs/sauerbraten/template
index 5251a99d10b2..08c51c1c174d 100644
--- a/srcpkgs/sauerbraten/template
+++ b/srcpkgs/sauerbraten/template
@@ -1,7 +1,7 @@
# Template file for 'sauerbraten'
pkgname=sauerbraten
version=2020.12.29
-revision=1
+revision=2
wrksrc=$pkgname
build_wrksrc=src
build_style=gnu-makefile
@@ -21,6 +21,7 @@ archs="i686* x86_64*"
post_install() {
vbin $wrksrc/bin_unix/native_client sauer_client
vbin ${FILESDIR}/sauerbraten
+ vinstall ${FILESDIR}/sauerbraten.desktop 0644 usr/share/applications
}
sauerbraten-data_package() {
next reply other threads:[~2022-03-26 6:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-26 6:27 hervyqa [this message]
2022-03-27 18:12 ` Vaelatern
2022-03-28 14:18 ` hervyqa
2022-03-28 23:40 ` Vaelatern
2022-03-28 23:46 ` the-maldridge
2022-07-01 2:15 ` github-actions
2022-07-16 2:13 ` [PR PATCH] [Closed]: " github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36357@inbox.vuxu.org \
--to=hervyqa@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).