-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Summary** - Install appstream metadata (Part of #1389) - Added homepage key (Part of #411) - Use patched upstream desktop file - Use patched upstream Makefile **Test Plan** - Verify metadata with `appstream-builder --packages-dir=. --include-failed -v` - Verify homepage loads relevant information - Make sure app icon switch properly depending on icon theme (Tested on GNOME, Budgie, Plasma) - Install `foobar2000` on Budgie VM **Checklist** - [x] Package was built and tested against unstable
- Loading branch information
Showing
8 changed files
with
111 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libGL.so.1 | ||
libX11.so.6 | ||
libc.so.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
libGL.so.1:glXChooseVisual | ||
libGL.so.1:glXCreateContext | ||
libGL.so.1:glXIsDirect | ||
libX11.so.6:XFree | ||
libX11.so.6:XOpenDisplay | ||
libc.so.6:__libc_start_main | ||
libc.so.6:__stack_chk_fail | ||
libc.so.6:exit | ||
libc.so.6:fwrite | ||
libc.so.6:puts | ||
libc.so.6:stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
From d7aabb70b991a8c9e262ad8adbe4bc33fa123f02 Mon Sep 17 00:00:00 2001 | ||
From: Muhammad Alfi Syahrin <malfisya.dev@hotmail.com> | ||
Date: Thu, 25 Jan 2024 14:42:35 +0700 | ||
Subject: [PATCH] patch Makefile | ||
|
||
--- | ||
Makefile | 20 +++++++++++--------- | ||
1 file changed, 11 insertions(+), 9 deletions(-) | ||
|
||
diff --git a/Makefile b/Makefile | ||
index a8d81b8..f3cfd83 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -31,7 +31,7 @@ DESTDIR ?= # root dir | ||
|
||
sharedir := $(DESTDIR)$(PREFIX)/share | ||
bindir := $(DESTDIR)$(PREFIX)/bin | ||
-execdir := $(DESTDIR)$(PREFIX)/libexec | ||
+execdir := bindir | ||
|
||
|
||
all: build | ||
@@ -58,20 +58,22 @@ build: | ||
install: | ||
install -d $(bindir) | ||
install -d $(execdir) | ||
- install -d $(sharedir)/pixmaps | ||
+ install -d $(sharedir)/icons/hicolor/128x128/apps | ||
+ install -d $(sharedir)/icons/hicolor/32x32/apps | ||
+ install -d $(sharedir)/icons/hicolor/16x16/apps | ||
install -d $(sharedir)/applications | ||
- install -d $(sharedir)/appdata | ||
- install -d $(sharedir)/playonlinux/bin | ||
+ install -d $(sharedir)/metainfo | ||
+ install -d $(sharedir)/playonlinux | ||
install -d $(sharedir)/man/man1 | ||
install -d $(sharedir)/locale | ||
$(GZIP) -c ./doc/playonlinux-pkg.1 > $(sharedir)/man/man1/playonlinux-pkg.1.gz | ||
$(GZIP) -c ./doc/playonlinux.1 > $(sharedir)/man/man1/playonlinux.1.gz | ||
cp ./etc/PlayOnLinux.desktop $(sharedir)/applications/PlayOnLinux.desktop | ||
- cp ./etc/PlayOnLinux.appdata.xml $(sharedir)/appdata/PlayOnLinux.appdata.xml | ||
- cp ./etc/playonlinux.png $(sharedir)/pixmaps/playonlinux.png | ||
- cp ./etc/playonlinux16.png $(sharedir)/pixmaps/playonlinux16.png | ||
- cp ./etc/playonlinux32.png $(sharedir)/pixmaps/playonlinux32.png | ||
- cp ./bin/{playonlinux,playonlinux-pkg} $(bindir)/ | ||
+ cp ./etc/PlayOnLinux.appdata.xml $(sharedir)/metainfo/PlayOnLinux.appdata.xml | ||
+ cp ./etc/playonlinux.png $(sharedir)/icons/hicolor/128x128/apps/playonlinux.png | ||
+ cp ./etc/playonlinux16.png $(sharedir)/icons/hicolor/16x16/apps/playonlinux.png | ||
+ cp ./etc/playonlinux32.png $(sharedir)/icons/hicolor/32x32/apps/playonlinux.png | ||
+ cp -p ./bin/{playonlinux,playonlinux-pkg} $(bindir)/ | ||
cp ./bin/playonlinux-check_dd $(execdir)/ | ||
cp ./{playonlinux*,README.md,TRANSLATORS,CHANGELOG.md,LICENCE} $(sharedir)/playonlinux/ | ||
cp -R ./{bash,etc,lib,plugins,python,resources,tests} $(sharedir)/playonlinux/ | ||
-- | ||
2.43.0 | ||
|
23 changes: 23 additions & 0 deletions
23
packages/p/playonlinux/files/0002-patch-desktop-file.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 8c91c14e582e494674fdbd9e3e2b1a88c0eab947 Mon Sep 17 00:00:00 2001 | ||
From: Muhammad Alfi Syahrin <malfisya.dev@hotmail.com> | ||
Date: Thu, 25 Jan 2024 14:43:19 +0700 | ||
Subject: [PATCH] patch desktop file | ||
|
||
--- | ||
etc/PlayOnLinux.desktop | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/etc/PlayOnLinux.desktop b/etc/PlayOnLinux.desktop | ||
index 490108c..f2ceba1 100644 | ||
--- a/etc/PlayOnLinux.desktop | ||
+++ b/etc/PlayOnLinux.desktop | ||
@@ -5,4 +5,6 @@ Comment=Front-end application for the wine | ||
Type=Application | ||
Exec=playonlinux %F | ||
Icon=playonlinux | ||
+Terminal=false | ||
+StartupWMClass=PlayOnLinux | ||
Categories=Utility;Emulator; | ||
-- | ||
2.43.0 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0001-patch-Makefile.patch | ||
0002-patch-desktop-file.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters