[game-data-packager] 01/02: scummvm icons: support .svg & game series-wide catch-all
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sat Jul 11 20:17:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 81b6d923ed436ded67e96585b20708ff8ef76a37
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sat Jul 11 22:01:57 2015 +0200
scummvm icons: support .svg & game series-wide catch-all
---
data/inherit.xpm | 3 +++
game_data_packager/games/scummvm_common.py | 9 ++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/data/inherit.xpm b/data/inherit.xpm
index 516b79d..7710e1e 100644
--- a/data/inherit.xpm
+++ b/data/inherit.xpm
@@ -1,4 +1,7 @@
/* XPM */
+/*
+https://commons.wikimedia.org/wiki/File:Emblem-earth.svg
+*/
static char *inherit[] = {
/* columns rows colors chars-per-pixel */
"64 64 234 2 ",
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
index b4cc7b6..079f933 100644
--- a/game_data_packager/games/scummvm_common.py
+++ b/game_data_packager/games/scummvm_common.py
@@ -60,7 +60,8 @@ class ScummvmGameData(GameData):
for from_ in (self.locate_steam_icon(package),
os.path.join(DATADIR, package.name + '.png'),
os.path.join(DATADIR, self.shortname + '.png'),
- os.path.join('/usr/share/pixmaps', icon + '.png')):
+ os.path.join('/usr/share/pixmaps', icon + '.png'),
+ os.path.join(DATADIR, self.shortname.strip('1234567890') + '.png')):
if from_ and os.path.exists(from_):
pixdir = os.path.join(destdir, 'usr/share/pixmaps')
mkdir_p(pixdir)
@@ -69,6 +70,12 @@ class ScummvmGameData(GameData):
else:
icon = 'scummvm'
+ from_ = os.path.splitext(from_)[0] + '.svgz'
+ if os.path.exists(from_):
+ svgdir = os.path.join(destdir, 'usr/share/icons/hicolor/scalable/apps')
+ mkdir_p(svgdir)
+ install_data(from_, os.path.join(svgdir, '%s.svgz' % icon))
+
appdir = os.path.join(destdir, 'usr/share/applications')
mkdir_p(appdir)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list