[game-data-packager] 06/25: add support for scummvm games, add Maniac Mansion (fre)
Simon McVittie
smcv at debian.org
Wed Feb 11 10:41:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit c4bc46cd71be28039aa4d446ac7be66475696f3f
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Mon Feb 9 13:50:31 2015 +0100
add support for scummvm games, add Maniac Mansion (fre)
---
data/maniacmansion.copyright | 22 +++
data/maniacmansion.yaml | 288 +++++++++++++++++++++++++++++
data/scummvm-common.desktop.in | 9 +
game_data_packager/games/scummvm_common.py | 50 +++++
4 files changed, 369 insertions(+)
diff --git a/data/maniacmansion.copyright b/data/maniacmansion.copyright
new file mode 100644
index 0000000..c791d07
--- /dev/null
+++ b/data/maniacmansion.copyright
@@ -0,0 +1,22 @@
+This package was generated using game-data-packager.
+Copyright © 2008-2013 Jonathan Dowland <jmtd at debian.org>.
+
+The .lfl files under "/usr/share/games" are user-supplied
+files that are not covered by the copyright or licence of this
+package; they are copyright (c) 1988 by Lucasfilm Games, all rights
+reserved.
+
+The remainder of this package is covered by the following
+Licence:
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; version 2 of the License.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL-2.
diff --git a/data/maniacmansion.yaml b/data/maniacmansion.yaml
new file mode 100644
index 0000000..7d6a290
--- /dev/null
+++ b/data/maniacmansion.yaml
@@ -0,0 +1,288 @@
+%YAML 1.2
+---
+longname: Maniac Mansion
+plugin: scummvm_common
+gameid: maniac
+packages:
+ maniacmansion-fr-data:
+ longname: Maniac Mansion (Fr)
+ install_to: usr/local/games/maniacmansion
+ debian:
+ engine: scummvm
+ install:
+ - 00.lfl
+ - 01.lfl
+ - 02.lfl
+ - 03.lfl
+ - 04.lfl
+ - 05.lfl
+ - 06.lfl
+ - 07.lfl
+ - 08.lfl
+ - 09.lfl
+ - 10.lfl
+ - 11.lfl
+ - 12.lfl
+ - 13.lfl
+ - 14.lfl
+ - 15.lfl
+ - 16.lfl
+ - 17.lfl
+ - 18.lfl
+ - 19.lfl
+ - 20.lfl
+ - 21.lfl
+ - 22.lfl
+ - 23.lfl
+ - 25.lfl
+ - 24.lfl
+ - 26.lfl
+ - 27.lfl
+ - 28.lfl
+ - 29.lfl
+ - 30.lfl
+ - 31.lfl
+ - 32.lfl
+ - 33.lfl
+ - 34.lfl
+ - 35.lfl
+ - 36.lfl
+ - 37.lfl
+ - 38.lfl
+ - 39.lfl
+ - 40.lfl
+ - 41.lfl
+ - 42.lfl
+ - 43.lfl
+ - 44.lfl
+ - 45.lfl
+ - 46.lfl
+ - 47.lfl
+ - 48.lfl
+ - 49.lfl
+ - 50.lfl
+ - 51.lfl
+ - 52.lfl
+ - 53.lfl
+cksums: |
+ _ 1988 00.lfl
+ _ 20996 01.lfl
+ _ 5139 02.lfl
+ _ 11394 03.lfl
+ _ 23709 04.lfl
+ _ 13928 05.lfl
+ _ 13273 06.lfl
+ _ 10067 07.lfl
+ _ 12170 08.lfl
+ _ 6903 09.lfl
+ _ 9715 10.lfl
+ _ 12235 11.lfl
+ _ 21238 12.lfl
+ _ 16385 13.lfl
+ _ 4959 14.lfl
+ _ 5837 15.lfl
+ _ 12334 16.lfl
+ _ 7856 17.lfl
+ _ 11694 18.lfl
+ _ 12028 19.lfl
+ _ 9649 20.lfl
+ _ 6272 21.lfl
+ _ 7415 22.lfl
+ _ 3585 23.lfl
+ _ 10087 24.lfl
+ _ 7108 25.lfl
+ _ 17615 26.lfl
+ _ 14385 27.lfl
+ _ 4697 28.lfl
+ _ 22433 29.lfl
+ _ 24925 30.lfl
+ _ 15073 31.lfl
+ _ 7656 32.lfl
+ _ 11692 33.lfl
+ _ 4994 34.lfl
+ _ 10849 35.lfl
+ _ 7547 36.lfl
+ _ 17146 37.lfl
+ _ 19332 38.lfl
+ _ 2518 39.lfl
+ _ 5303 40.lfl
+ _ 5602 41.lfl
+ _ 6707 42.lfl
+ _ 3039 43.lfl
+ _ 25514 44.lfl
+ _ 16498 45.lfl
+ _ 4563 46.lfl
+ _ 14230 47.lfl
+ _ 4050 48.lfl
+ _ 4710 49.lfl
+ _ 6132 50.lfl
+ _ 8875 51.lfl
+ _ 4018 52.lfl
+ _ 13027 53.lfl
+md5sums: |
+ 114acdc2659a273c220f86ee9edb24c1 00.lfl
+ e9823e87de24bba57a8b7a5a8f1879f7 01.lfl
+ 372dc9fcd42e869e834e17af79138a0d 02.lfl
+ e1af1fdf2139047cebc0e17a4b0286d2 03.lfl
+ 581f9ef534d660a109fd0a1361f67f30 04.lfl
+ 57cee958506819f5023349d8860d5d9e 05.lfl
+ a05bebe55a4013e8ae652979b26a9f5c 06.lfl
+ b4a4d56191467c12bf8912b916908feb 07.lfl
+ 1ce5fac2b3286bdc7a7fe9fef87fac73 08.lfl
+ f67f69b49f006338a70df2f0cb199473 09.lfl
+ 56782b3cae99178000d04cdef00af56b 10.lfl
+ a63e269d9e5f24e4253786ca10fb01be 11.lfl
+ 9dca26660639231ba725faf25b48d94e 12.lfl
+ c687ab2308d74d03812525262956696c 13.lfl
+ b83a78a32b4253b39fc62bb0316aea96 14.lfl
+ 9ecf57c4ca95ded077a16b41ab85fad6 15.lfl
+ 92848d771fab08012d1b033fa85380d8 16.lfl
+ 9e1a5503ff943f31736ce8f1a1ecc211 17.lfl
+ 5d22dc429bde2cefa39d2d2f368bc725 18.lfl
+ fd791eda96607fb6e7b982e25f94e906 19.lfl
+ 8a40af930378bf7c3a1ad52cf95cbf9b 20.lfl
+ 3dc92c62ee6108b883efed0931e88e78 21.lfl
+ 73ce54b96d707a135fb2325f3e11ce5f 22.lfl
+ 3d9910f82c11ce8da12ab23687043b12 23.lfl
+ 9ba26068861ea4f20d514216cc809b5b 24.lfl
+ 1a80ba0f90a17058f66f378571b1f1cd 25.lfl
+ 5ed7a63b759c0733192de67853b71c43 26.lfl
+ e873b5a96b1bbad2f3802fb5c96925b5 27.lfl
+ ee86041d1f136d8ef952b79a34c30577 28.lfl
+ 78b0fa3339b05b6369a6e6f3c80a0a55 29.lfl
+ fd39e8600ffb0092e8ee9fc3b855b4ab 30.lfl
+ f58f6c07e93078bc7cbb41d657846502 31.lfl
+ 3fcec3d90925560427a82f517cc5b65c 32.lfl
+ 2df2066182925a5e90b7af27d98ca732 33.lfl
+ 07d98909cd26ef72265a7bacf738881d 34.lfl
+ cdd340c186bed55a4ae41ce7fabb2147 35.lfl
+ ab7a352ce29d1342bd88d2fbcec14b89 36.lfl
+ 83f313d99e255d03571ea414cddeb699 37.lfl
+ 3f9cd4cfd9658da4173c87b7a4b431b8 38.lfl
+ 053eb6460d568e1302a4e8dcf5cd8a11 39.lfl
+ d2ff2a9b4da77d22d7cbd940994a178b 40.lfl
+ 5bb9a6a92d4a14c281c8d16b8ae2342f 41.lfl
+ 4977966686dd347407630f2e6ad9200d 42.lfl
+ 837c192fbaf502d1fa046eb9353b6e74 43.lfl
+ ce42597558917da4e592ba2b2cd8b6b0 44.lfl
+ d719bb3bfd460508b7e7cbad3fefb5ad 45.lfl
+ 757c05fff290168d21efe06682f02fe3 46.lfl
+ bdc7b198c6dfe72033c879fc01b0e2f1 47.lfl
+ 2fe8c70c6c15b18e711fc88f3717145f 48.lfl
+ 6003f9b85161377950bde2765303095a 49.lfl
+ 1fce0c02b669b31be2e75dd6a31872ce 50.lfl
+ ecacc2ec60a9531dd1e4e4734678d15e 51.lfl
+ 86161fbb1acd3cfcb9b6572fb8758471 52.lfl
+ bff117954179b2fccf5ec58c712d1237 53.lfl
+sha1sums: |
+ f16c77470536bb1b4e2f14d19857472284037450 00.lfl
+ ff71c272cf078a742a3d86c48dd84687c2d9b2d2 01.lfl
+ 8461f9820285f70f6837ea7bfc4c0ad6ad2f18a7 02.lfl
+ 914f4e08a7dd5d209e06d8952fd7c6e23b75a5fa 03.lfl
+ ac1df5d42583438d5e171f99be3e19742c8f03d2 04.lfl
+ 723b595aefcb2015dc64f36dd6217306ee45bf13 05.lfl
+ 143bd9afa780a9b92993713dcdfda24a7e2d0534 06.lfl
+ b7d950de2d362d13c72a0ea979e2c1aaad21a71c 07.lfl
+ adbfc058281942afbba0550c5e822c395b376aed 08.lfl
+ 7610d191a408536c6ecea3b788ae8d924cb19a88 09.lfl
+ 8fa7ae254ac0beed243bc314fb70618c8aa9f11a 10.lfl
+ b32430df48e5367998ff791d139785b3ac27b103 11.lfl
+ 8e287ef4f44d0922e3c39ff17b3cca2e80948162 12.lfl
+ 12ca3b78ba2b90c24a541461723f669b297cdb45 13.lfl
+ 79a8a099cfa778f918272bd779a6df6f9df2db18 14.lfl
+ 89761ebb49ffafc2dd28fe5a7acb29ea4c98022e 15.lfl
+ 049feeb7cdcd1749142212af94863f504bfe6497 16.lfl
+ 18d9a3d91ed075b4c1c9a0c3ecdfd6f34fcf7e81 17.lfl
+ fa299d6e9e9990498c7842929271d068bbccedfc 18.lfl
+ 6af831fba3d5614746b4a41a7f7d0d3a9760dd28 19.lfl
+ 79add30f143ae9c361d9d21982ade9f8785debd3 20.lfl
+ 94b88ca6c287f2860d23541d43ad6cc38cd20684 21.lfl
+ c050fe97401f439494cc103b8e6a19443f2690e7 22.lfl
+ c05fcb2892fca43d53b67fda6b1d1f60b0fc0375 23.lfl
+ 08f2756eb568b4471455ba275796cef35b6229f7 24.lfl
+ bebf08079d7d7573d9d50d4358e6e799cbbb3b62 25.lfl
+ 2b26b9e6d332ce2686735c35698a4629bd590878 26.lfl
+ 9a161da50229014b2ac59a128b69078fcf663029 27.lfl
+ 88418cc18ef1758d008cc6056d73a95d8505c137 28.lfl
+ 7c78c1a5c6725237071a5a6edd5b1ee2c0625e9e 29.lfl
+ 86f80f102576670c0d28a47d3da300a54d694d26 30.lfl
+ 9b5e4f06d40c4786d0647085dfda8cdf58684bb6 31.lfl
+ 8bb1a35080efa915181e21c3a02c3d92245072bf 32.lfl
+ 4b14553c6d2640c113fe82bcf0a053ea86b6c154 33.lfl
+ b8afaf3d4147131380d371a1acf69aa64b3284f2 34.lfl
+ e54af968156278bdd641287da2dca26b1776699a 35.lfl
+ f65fc2a8cb6dc5161e2c64f13476ecf575331997 36.lfl
+ 4ff112b20b40954517de3bba4acfac49b295e1bf 37.lfl
+ c61a2e0c72b37a75b1c1d79325c78f5366d095a8 38.lfl
+ 2fbb3a1c92212dcde917abcf199601e4441996d8 39.lfl
+ fbfe9a322d96a2d17b310bd9d4abdde778fa2bb3 40.lfl
+ 09af19a24ce318ca1a41cd05977fdb81baf8bd80 41.lfl
+ 3bc1c467f12108b91848586fe95702d0be501b5c 42.lfl
+ 976a8a3aa12a425155f06eaa493f819d626fbb4d 43.lfl
+ 001bd8ab9dbc8de0962eab07dc71f4ff2622b94e 44.lfl
+ 18d5d9c3f3ea9afb95e134332fb09da807df59de 45.lfl
+ 547a5cea409962a84c8c73ad8c7f38ff3b61669c 46.lfl
+ 6a6b169f35b1ae7a1056360664f1ffa21d1a4c8e 47.lfl
+ 59e0c1a0468e30ca90c6a56463b59e3735d35752 48.lfl
+ c5b28464110d16e21f74a58ea326f5ff1933c35c 49.lfl
+ eaea8997c4a7b5444f9e35d07b4be2706574d74d 50.lfl
+ 923c3f54f3c268613cd49e77f9ab186d5536865d 51.lfl
+ db4ad8c57ad217b1ba470aaabc07cb5a0a7b87d7 52.lfl
+ 5cb7749c02ca0172b1ffbe84c37ac9a34916e6fe 53.lfl
+sha256sums: |
+ 28fd7e86740c86ce0c9830bc9783af856e9d1eb2a74731e9d807ddab1127b1b5 00.lfl
+ aede50966d96ca5fcdc0cb0390f7142c1c4278e8ab039ce27163341157d8ae80 01.lfl
+ 88bdf561b4c75b14da603f061531776b68e21f89ff7a8d943ce121eb1fb37d15 02.lfl
+ 398f11b8485eb9b59940efd6c5941aad7fa4c96a5edb08150b103c3e5b6ff301 03.lfl
+ 2bf68fbca8c359e6e7e7c04e4221e74fa93cca1dfd7d188ea433f8253a9fe909 04.lfl
+ a6b8d2397845dd848f9bdbdd48993e09594577a3c4f2da23e2e8a1e68892b53e 05.lfl
+ c8856e51f1cffba9ce84d6b42c37868346dc6b0cc75030c9eb542fdbc94a1a63 06.lfl
+ 5258937058c5e512d5d5caa74e797f2d8222e9b2959f62ec3227c0834de12eee 07.lfl
+ d14b9b4246a228b24468ef8ff77d846a9df010b4fec1d81f99a34080fcc5b813 08.lfl
+ 14c045f8c84dd945ff7638424a07ffc00abcd4096bcaa24c15c091fd024e0be5 09.lfl
+ 4b6adc6163f6d570948c4064209f2598f23447bbb96fd02760f1071e0d916d38 10.lfl
+ 7cc13d2775b6c06ed5298d7172b499185bfc69e8d82295b1a8606918eff1f560 11.lfl
+ 15cd157edb940e392bd1bf5a8d036f6210c8c6bad3aba7648df85c53b4fc6d79 12.lfl
+ 0823873bd92f0db81fe6bc55f420f06b22b4876aff2096f6efebe911d92148db 13.lfl
+ 8e1653350b9388b94cd1bdba0de531c1456cd94c529d500977059966e602cd8b 14.lfl
+ 6c0ecf577823c14b6f10105c5c0b062b49bee5b0120840dc038d21c21129ee69 15.lfl
+ 509b1dc909a51502acdba75e1465698dafd91102e14a2bae1f5d67f7d693b090 16.lfl
+ 964751f23bca0d0e33ac0a4b7d2aee5adb005ca7a8ae31a08cbd145acdf05def 17.lfl
+ d7f34701e753aae51c57714720c75818e72a62b1880d5013b4d25758e036f219 18.lfl
+ 21cc5619c5a07ca68077bc5dfe1ffbecdb7d434f10aa1385fc9bb5f0a00ef13d 19.lfl
+ 89e14a10c4f2940979a3f5c4810df4be70ae19ad127c8974d9d0461a1d74a58a 20.lfl
+ 3d07bcb76bae2c7bd21e250a2f113d4c3ebed2b02c8bfdeaa1573646da351c48 21.lfl
+ 838d427c9e74cc7332ae62201f778fc52a2e76e7a9c8bb171c633abff53a9385 22.lfl
+ 0b03ba9e95be222c2ce14987aa3664faf9e038e67e6e67053c9f93cf44a7986f 23.lfl
+ 1718fd26c74bc241e8d7c80f6a20f2cab7cbdb3073ab0f9457ed155d9de1381b 24.lfl
+ e78e66d4224c942cd1de9ada31bc32af082317c2a39fd3a2e5c1eed7eb9840b5 25.lfl
+ a69046b9f55e2fdea0fae4431c2ab63cd635192cefdf48106bb06e550b7ae657 26.lfl
+ e41aaca2cef66f09299d04a1071f8ee489a4fabccf4ef146ea0086b94ac26c6d 27.lfl
+ 4198c360f0029554c63eda0e90b10ab14f9b5024959ad4219d976ba233be5482 28.lfl
+ 728954380bbd8013d5cf943ae91c5f47d68f5124732e88a5a5269fd571bb3030 29.lfl
+ 0721bf42b3f32dc04f1df8bfd9c56793693391af922c43a43b8491855996e456 30.lfl
+ cef71b3a1aad75469d7b20bd7c9db3d69ce6c331bd224e8494cdf5d27fe411fe 31.lfl
+ 9588f45bfd6c431646efb3d56d53727fd41b0b8278e4505f0d82055c673f1953 32.lfl
+ 0453a903036b40a8212408ae3fab4e3b96c623aff09fb7932e1832aace375d59 33.lfl
+ ae8bb206a2ad829704ebfe939afd587ac901ec0d5f5b6e6361d4873c9e2602df 34.lfl
+ 49cb93734f0c7fb087f5882e62ab3a385b9dcf84ebb8b962422f94dce85e8173 35.lfl
+ 58b01938b0f88e4c72ceb8cfec632b0d1940b18e1d08f1695f8ee2bb75f2b958 36.lfl
+ 04adbdd87092f3be090648a4321ba1b12bfd81a19054f5cc0322b27859d8b9a7 37.lfl
+ 513a9547892c3142f3c33fd072f77e2af398a23be000e529c46338203313940d 38.lfl
+ bc606b38b35795912493e7264edd506c0a8f4fbeb32b9cdefd90381ab0a9accf 39.lfl
+ 94efdac811ea68f90c894e689c35eb737a3e6378f01fb415b0e261fe1d0e602a 40.lfl
+ 5a2707a2b59ec58c2a43be2c36e82ec8695acfac412189e84c2e6a9e15f400f8 41.lfl
+ 6f4487c0c160abe822f1c4362dd9fcd9fb3239b1f65790e5a945cd5c98f39663 42.lfl
+ d114e4478fa0d66b667b758f4ecd91c840b7095365c85cd79a29dff27d5bfa63 43.lfl
+ 0d69c8f91ff4e89e7b2c1b869df93e115332b8f4c3989461e5b155f9f2cf979b 44.lfl
+ 1a9386acebd17795ce1b7821b065a2235f297832d9d5163c68e6e3ebcb050f24 45.lfl
+ 072302d3956b5184a38b58f2013cf421fcd156f51fec942ceeea1b939ddca809 46.lfl
+ 025f2099f7a67f2cff59a0d4b084e741bb38c63eac06db8e70d834e1f1078ab4 47.lfl
+ c76a8b3c674fb989db4ca2bd913f348625f552818a90739650d56987dc6c3f07 48.lfl
+ f55f17ed7deda5041b1b2675132c88bcbf7743f442484db4815e69027fa6d017 49.lfl
+ 689827c1f47214d1abc87942830cf88575d218b5557eff59794bb4f08c742aa2 50.lfl
+ 8278d49d978d0bd0f0df031b23d2310a0e3476917de32acbd0c95634af17c8f0 51.lfl
+ 9e245867a07bd43a5454c6bdb49bd17002f50ab4e557780ed83b05939fe28981 52.lfl
+ f9705f8eeb56dd1e51b0139b582645656b804a08028ee1ea34cbf1f1fbe69890 53.lfl
+...
+
diff --git a/data/scummvm-common.desktop.in b/data/scummvm-common.desktop.in
new file mode 100644
index 0000000..81d82ee
--- /dev/null
+++ b/data/scummvm-common.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=LONG
+GenericName=Adventure Game
+TryExec=scummvm
+Exec=scummvm -p /PATH GAME
+Icon=/usr/share/icons/scummvm.xpm
+Terminal=false
+Type=Application
+Categories=Game
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
new file mode 100644
index 0000000..63e848c
--- /dev/null
+++ b/game_data_packager/games/scummvm_common.py
@@ -0,0 +1,50 @@
+#!/usr/bin/python3
+# encoding=utf-8
+#
+# Copyright © 2015 Simon McVittie <smcv at debian.org>
+# 2015 Alexandre Detiste <alexandre at detiste.be>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+#
+# You can find the GPL license text on a Debian system under
+# /usr/share/common-licenses/GPL-2.
+
+import logging
+import os
+
+from .. import GameData
+from ..paths import DATADIR
+from ..util import (TemporaryUmask, copy_with_substitutions, mkdir_p)
+
+logger = logging.getLogger('game-data-packager.games.scummvm-common')
+
+class ScummvmGameData(GameData):
+ def __init__(self, shortname, yaml_data, workdir=None):
+ super(ScummvmGameData, self).__init__(shortname, yaml_data,
+ workdir=workdir)
+
+ self.gameid = self.yaml['gameid']
+
+ def fill_extra_files(self, package, destdir):
+ super(ScummvmGameData, self).fill_extra_files(package, destdir)
+
+ with TemporaryUmask(0o022):
+ appdir = os.path.join(destdir, 'usr/share/applications')
+ mkdir_p(appdir)
+ from_ = os.path.join(DATADIR, 'scummvm-common.desktop.in')
+ copy_with_substitutions(open(from_,
+ encoding='utf-8'),
+ open(os.path.join(appdir, '%s.desktop' % package.name),
+ 'w', encoding='utf-8'),
+ GAME=self.gameid,
+ PATH=package.install_to,
+ LONG=(package.longname or self.longname))
+
+GAME_DATA_SUBCLASS = ScummvmGameData
--
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