Projects
Games
zelda-xd2-mercuris-chess
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
zelda-xd2-mercuris-chess.changes
Changed
@@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Apr 6 21:29:55 UTC 2021 - antoine.belvire@opensuse.org + +- Update to version 1.1.2: + * Improve Spanish translation. +- Rebase cmake cpp compiler patch. + +------------------------------------------------------------------- Sat Aug 10 15:29:41 UTC 2019 - antoine.belvire@opensuse.org - Update to version 1.1.1:
View file
zelda-xd2-mercuris-chess.spec
Changed
@@ -1,7 +1,7 @@ # # spec file for package zelda-xd2-mercuris-chess # -# Copyright (c) 2018 The Packman Team. +# Copyright (c) 2018-2021 The Packman Team. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define quest_name zelda_xd2_mercuris_chess Name: zelda-xd2-mercuris-chess -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: Second April fools game from the Solarus Team License: GPL-3.0-only AND CC-BY-SA-4.0 AND NonFree
View file
zelda-xd2-mercuris-chess-1.0.6-dont-require-cpp-compiler.patch
Deleted
@@ -1,10 +0,0 @@ -diff -up ./CMakeLists.txt.orig ./CMakeLists.txt ---- ./CMakeLists.txt.orig 2018-04-04 22:16:34.836269551 +0200 -+++ ./CMakeLists.txt 2018-04-04 22:16:40.188269773 +0200 -@@ -1,5 +1,5 @@ - cmake_minimum_required(VERSION 2.6) --project(ZELDA_XD2_MERCURIS_CHESS) -+project(ZELDA_XD2_MERCURIS_CHESS NONE) - - set(quest_name "zelda_xd2_mercuris_chess") -
View file
zelda-xd2-mercuris-chess-1.1.2-dont-require-cpp-compiler.patch
Added
@@ -0,0 +1,10 @@ +diff -up ./CMakeLists.txt.orig ./CMakeLists.txt +--- ./CMakeLists.txt.orig 2018-04-04 22:16:34.836269551 +0200 ++++ ./CMakeLists.txt 2018-04-04 22:16:40.188269773 +0200 +@@ -1,5 +1,5 @@ + cmake_minimum_required(VERSION 2.6) +-project(ZELDA_XD2_MERCURIS_CHESS) ++project(ZELDA_XD2_MERCURIS_CHESS NONE) + + set(quest_name "zelda-xd2-mercuris-chess") +
View file
zelda-xd2-mercuris-chess-v1.1.1.tar.bz2/changelog.txt
Deleted
@@ -1,102 +0,0 @@ -____________________________________________ - -Zelda XD2: Mercuris Chess 1.1.1 (2019-08-10) -____________________________________________ - -* Fix Solarus format to 1.6. -* Fix getting stuck on a stone in water near Rupee Island (#141). -* Fix ghostly proprietor sprite displaying issue (#142). - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.1.0 (2018-12-22) -____________________________________________ - -* Upgrade to Solarus 1.6. -* Add Spanish translation by Minefran12 (#22). -* Fix English language not set by default (#129). - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.6 (2018-04-02) -____________________________________________ - -* Fix English translation issues. - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.5 (2018-04-01) -____________________________________________ - -* Add English translation (#79). -* Give more hints to make the player get the lens before dungeon 1 (#96). -* Fix using joypad in menus (#29). -* Fix prehistoric label displaying (#93). -* Fix minor issues in French dialogs. -* Dungeon 2 1F: fix hookshot not working between two platforms (#91). - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.4 (2017-06-10) -____________________________________________ - -* Add a statistics screen at the end (#52). -* Add a game time counter in the quest status screen (#89). -* Add library award to the quest status screen (#58). -* Fix hearts not displayed in the savegame menu. -* Fix stuck after the fight against Zelda's cat (#54). -* Fix rupee island accessible without flippers (#67). -* Fix rupee island rupees invisible even with the lens of truth (#72). -* Fix running not inflicting twice damage (#77). -* Allow to enter the lost and found office from outside (#7). -* Add unbreakable vases in the vase house. -* Dungeon 1: reduce the boss fight duration (#78). -* Dungeon 1: improve throwing the iron ball. -* Dungeon 2 7F: fix black statues that should not move. -* Dungeon 2 3F: add a telepathic message joke (#64). -* Prehistoric cave: allow to use the perfume from a wider range (#57). -* Water house: fix pool limits. -* Slightly improve ending dialogs. -* Fix typos. -* Various minor improvements and bug fixes. - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.3 (2017-04-05) -____________________________________________ - -* Fix stuck when trying to use bananas but having none anymore (#53). -* Fix rupee and heart counter changing too quickly. -* Fix minor tile issue in Chill Valley bath (#51). -* Fix typos in dialogs. - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.2 (2017-04-04) -____________________________________________ - -* Fix Zelda mail not working the second time. -* Minor dialog improvements. - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.1 (2017-04-04) -____________________________________________ - -* Fix duplicated menus after game-over (#2). -* Make karts hurt the hero and react to bananas (#36). -* Allow to use the lens of truth in water and some other states (#48). -* Move the piece of heart from the forest to the freaking cave (#40). -* Fix stuck in a wall after diagonal jump in Chill Valley. -* Fix stuck in dungeon 2 2F if wallmaster is killed (#16). -* Fix stuck in the final scene when going to the left (#46). -* Fix camera jumping in the freaking cave (#1). -* Fix typos. -* Various minor improvements and bug fixes. - -____________________________________________ - -Zelda XD2: Mercuris Chess 1.0.0 (2017-04-01) -____________________________________________ - -* Initial release.
View file
zelda-xd2-mercuris-chess-v1.1.1.tar.bz2/.gitignore -> zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/.gitignore
Changed
@@ -8,5 +8,5 @@ cmake_install.cmake *.luac data.solarus +zelda-xd2-mercuris-chess work/unversioned/ -
View file
zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/.gitlab-ci.yml
Added
@@ -0,0 +1,2 @@ +include: + - https://gitlab.com/solarus-games/solarus-devops/raw/master/gitlab/quests.yml \ No newline at end of file
View file
zelda-xd2-mercuris-chess-v1.1.1.tar.bz2/CMakeLists.txt -> zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/CMakeLists.txt
Changed
@@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) project(ZELDA_XD2_MERCURIS_CHESS) -set(quest_name "zelda_xd2_mercuris_chess") +set(quest_name "zelda-xd2-mercuris-chess") set(SOLARUS_INSTALL_DATAROOTDIR "share" CACHE PATH "dataroot dir") set(SOLARUS_INSTALL_DATADIR "${SOLARUS_INSTALL_DATAROOTDIR}/solarus" CACHE PATH "data dir") @@ -76,3 +76,38 @@ DESTINATION ${SOLARUS_INSTALL_BINDIR} ) +# FreeDesktop compatible icons +if(UNIX AND NOT APPLE) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_16.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_20.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/20x20/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_22.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/22x22/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_32.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_40.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/40x40/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_48.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_64.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_96.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/96x96/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_128.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_256.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_512.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_1024.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/1024x1024/apps RENAME zelda-xd2-mercuris-chess.png) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/logo_2x.png + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME zelda-xd2-mercuris-chess.png) +endif(UNIX AND NOT APPLE) + +# FreeDesktop compatible start menu launcher +if(UNIX AND NOT APPLE) + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zelda-xd2-mercuris-chess.desktop + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) +endif(UNIX AND NOT APPLE)
View file
zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/INSTALL
Added
@@ -0,0 +1,68 @@ +install.sh is a POSIX sh script known to work with the following shells: + + ash + dash + bash + ksh + loksh + mksh + pdksh + posh (0.14.1 or newer) + oksh + yash + zsh + +install.sh accepts the following arguments as targets: + +build - Generates the solarus.data archive and the executable script. +clean - Removes the solarus.data archive and the executable script. +install - Installs the solarus.data archive and executable script. +install-assets - Installs the docs, icons and desktop file. +uninstall - Uninstalls all installed files. + +The build, clean and install targets can customize the name of the data +archive. + + DATANAME - Name of the solarus data archive (data.solarus) + +Additionally the following arguments can be passed to the install +and uninstall targets to configure the install paths. + + PREFIX - Install path prefix (/usr/local) + BINDIR - Binary install directory (PREFIX/bin) + DOCDIR - Documentation install directory (PREFIX/share/doc) + MANDIR - Manpage install directory (PREFIX/share/man) + DATADIR - Read-only data install directory (DATAROOTDIR) + DATAROOTDIR - Read-only data root install directory (PREFIX/share) + SYSCONFDIR - Read-only data install directory (PREFIX/etc) + +The configurable install directories can be either absolute or relative +paths. If they are set as relative paths the value of PREFIX will be +prepended to the install directory. For example if MANDIR is set to +'man' man pages will be installed to '/usr/local/man/' instead of +'/usr/local/share/man/'. + +By design install.sh will not use any set environment variables and all +configuration must be passed explicitly as arguments. + +EXAMPLES + + ./install.sh install PREFIX=/usr DESTDIR=/tmp + + Installs to '/tmp/usr/'. + + ./install.sh uninstall PREFIX=/usr DESTDIR=/tmp + + Uninstalls from '/tmp/usr/'. + + ./install.sh install DOCDIR=/usr/local/doc + + Installs documentation to '/usr/local/doc/$PRGNAM-$VERSION'. + + ./install.sh install MANDIR=man + + Installs man pages to '$PREFIX/man/man1/'. + + ./install.sh install SYSCONFDIR=/etc + + Installs read-only data to '/etc/'.
View file
zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/changelog.md
Added
@@ -0,0 +1,81 @@ +# Changelog + +## Zelda XD2: Mercuris Chess 1.1.2 (2021-04-06) + +* Improve Spanish translation. + +## Zelda XD2: Mercuris Chess 1.1.1 (2019-08-10) + +* Fix Solarus format to 1.6. +* Fix getting stuck on a stone in water near Rupee Island (#141). +* Fix ghostly proprietor sprite displaying issue (#142). + +## Zelda XD2: Mercuris Chess 1.1.0 (2018-12-22) + +* Upgrade to Solarus 1.6. +* Add Spanish translation by Minefran12 (#22). +* Fix English language not set by default (#129). + +## Zelda XD2: Mercuris Chess 1.0.6 (2018-04-02) + +* Fix English translation issues. + +## Zelda XD2: Mercuris Chess 1.0.5 (2018-04-01) + +* Add English translation (#79). +* Give more hints to make the player get the lens before dungeon 1 (#96). +* Fix using joypad in menus (#29). +* Fix prehistoric label displaying (#93). +* Fix minor issues in French dialogs. +* Dungeon 2 1F: fix hookshot not working between two platforms (#91). + +## Zelda XD2: Mercuris Chess 1.0.4 (2017-06-10) + +* Add a statistics screen at the end (#52). +* Add a game time counter in the quest status screen (#89). +* Add library award to the quest status screen (#58). +* Fix hearts not displayed in the savegame menu. +* Fix stuck after the fight against Zelda's cat (#54). +* Fix rupee island accessible without flippers (#67). +* Fix rupee island rupees invisible even with the lens of truth (#72). +* Fix running not inflicting twice damage (#77). +* Allow to enter the lost and found office from outside (#7). +* Add unbreakable vases in the vase house. +* Dungeon 1: reduce the boss fight duration (#78). +* Dungeon 1: improve throwing the iron ball. +* Dungeon 2 7F: fix black statues that should not move. +* Dungeon 2 3F: add a telepathic message joke (#64). +* Prehistoric cave: allow to use the perfume from a wider range (#57). +* Water house: fix pool limits. +* Slightly improve ending dialogs. +* Fix typos. +* Various minor improvements and bug fixes. + +## Zelda XD2: Mercuris Chess 1.0.3 (2017-04-05) + +* Fix stuck when trying to use bananas but having none anymore (#53). +* Fix rupee and heart counter changing too quickly. +* Fix minor tile issue in Chill Valley bath (#51). +* Fix typos in dialogs. + +## Zelda XD2: Mercuris Chess 1.0.2 (2017-04-04) + +* Fix Zelda mail not working the second time. +* Minor dialog improvements. + +## Zelda XD2: Mercuris Chess 1.0.1 (2017-04-04) + +* Fix duplicated menus after game-over (#2). +* Make karts hurt the hero and react to bananas (#36). +* Allow to use the lens of truth in water and some other states (#48). +* Move the piece of heart from the forest to the freaking cave (#40). +* Fix stuck in a wall after diagonal jump in Chill Valley. +* Fix stuck in dungeon 2 2F if wallmaster is killed (#16). +* Fix stuck in the final scene when going to the left (#46). +* Fix camera jumping in the freaking cave (#1). +* Fix typos. +* Various minor improvements and bug fixes. + +## Zelda XD2: Mercuris Chess 1.0.0 (2017-04-01) + +* Initial release.
View file
zelda-xd2-mercuris-chess-v1.1.1.tar.bz2/data/languages/es/text/dialogs.dat -> zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/data/languages/es/text/dialogs.dat
Changed
@@ -4,7 +4,7 @@ text = [[ Es un interruptor de cristal. -Golpealo con algo... +Prueba a golpearlo. ]], } @@ -13,7 +13,7 @@ icon = "30", skip = "all", text = [[ -Una piel de plátano que +La piel de plátano que te vendió el mono del bosque. Has sido estafado. @@ -27,7 +27,7 @@ text = [[ Usa las bombas contra enemigos o prara hacer -explotar obstaculos. +explotar obstáculos. ]], } @@ -97,7 +97,7 @@ text = [[ Bebe una Poción Verde para restaurar -tu Mágia. +tu Magia. ]], } @@ -108,7 +108,7 @@ text = [[ ¡Bebe una Poción azul para restaurar -Corazones y Mágia! +Corazones y Magia! ]], } @@ -165,7 +165,7 @@ text = [[ Bebe una Poción Verde para restaurar -tu Mágia. +tu Magia. ]], } @@ -176,7 +176,7 @@ text = [[ ¡Bebe una Poción azul para restaurar -Corazones y Mágia! +Corazones y Magia! ]], } @@ -233,7 +233,7 @@ text = [[ Bebe una Poción Verde para restaurar -tu Mágia. +tu Magia. ]], } @@ -244,7 +244,7 @@ text = [[ ¡Bebe una Poción azul para restaurar -Corazones y Mágia! +Corazones y Magia! ]], } @@ -301,7 +301,7 @@ text = [[ Bebe una Poción Verde para restaurar -tu Mágia. +tu Magia. ]], } @@ -312,7 +312,7 @@ text = [[ ¡Bebe una Poción azul para restaurar -Corazones y Mágia! +Corazones y Magia! ]], } @@ -335,7 +335,7 @@ No tienes flechas, lo cual no importa pues la cuerda está -rota de todos modos. +rota. ]], } @@ -347,8 +347,8 @@ La cuerda de tu arco está rota. -¿Qué haras con todas -esas flechas? +¿Y ahora que harás con +todas esas flechas.? ]], } @@ -373,7 +373,7 @@ icon = "18", skip = "all", text = [[ -Come un Croissant +Cómete un Croissant para restaurar siete Corazones. ]], @@ -386,7 +386,7 @@ text = [[ Esto es una Pluma, pero es bastante -dificil de usar. +difícil de usar. ]], } @@ -420,7 +420,7 @@ skip = "all", text = [[ Las aletas te -permitiran nadar +permitirán nadar en aguas profundas y en champán. ]], @@ -432,7 +432,7 @@ skip = "all", text = [[ Las aletas te -permitiran nadar +permitirán nadar en aguas profundas y en champán. ]], @@ -443,9 +443,9 @@ icon = "32", skip = "all", text = [[ -Con esto, podras +Con esto, podrás levantar muchas cosas. -Creo... +Puede... ]], } @@ -465,7 +465,7 @@ icon = "6", skip = "all", text = [[ -Elevate a ti mismo +Elévate a ti mismo a lugares inaccesibles con la ayuda del Gancho. @@ -478,10 +478,10 @@ skip = "all", text = [[ Ilumina oscuros lugares -y enciende antoechas +y enciende antorchas con el Farolillo. ¡Pero estate atento -a tu mágia! +a tu magia! ]], } @@ -509,7 +509,7 @@ text = [[ Algo de correo para la Princesa Zelda. -¡Vete a darselo! +¡Vete a dárselo! ]], } @@ -518,7 +518,7 @@ icon = "17",
View file
zelda-xd2-mercuris-chess-v1.1.1.tar.bz2/data/quest.dat -> zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/data/quest.dat
Changed
@@ -7,8 +7,8 @@ The second parodic game by the Solarus team, released on April 1st, 2017. Link is seeking for forgiveness and revenge!]], author = "Christopho", - quest_version = "1.1.1", - release_date = "20190810", + quest_version = "1.1.2", + release_date = "20210405", website = "www.solarus-games.org", normal_quest_size = "320x240", min_quest_size = "320x240",
View file
zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/install.sh
Added
@@ -0,0 +1,227 @@ +#!/bin/sh +# Install script for zelda-xd2-mercuris-chess. + +# Copyright 2017-2020 orbea +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# IFS is <space><tab><newline> +IFS=' +' +\unset -f command printf unalias : 2>/dev/null +\unalias -a 2>/dev/null +PATH="$(command -p getconf PATH):$PATH" +LC_ALL=C; export LC_ALL + +set -euf + +die () { + ret="$1"; shift + case "$ret" in + : ) printf %s\\n "$@" >&2; return 0 ;; + 0 ) printf %s\\n "$@" ;; + * ) printf %s\\n "$@" >&2 ;; + esac + exit "$ret" +} + +case "${1:-}" in + install-assets ) INSTALL=4 ;; + clean ) INSTALL=3 ;; + build ) INSTALL=2 ;; + install ) INSTALL=1 ;; + uninstall ) INSTALL=0 ;; + '' ) die 1 'No install target.' ;; + * ) die 1 "No rule to install target '$1'." ;; +esac + +cmd () { + print= + for command do + case "$command" in + -- ) : ;; + */* ) print="${print} '$command'" ;; + * ) print="${print} $command" ;; + esac + done + printf " %s\\n" "$print" + command -p "$@" +} + +is_absolute () { case "$1" in /*) return 0 ;; *) return 1 ;; esac; } + +PREFIX=; BINDIR=; DATADIR=; DATANAME=; DATAROOTDIR=; DOCDIR=; MANDIR= +SYSCONFDIR=; DESTDIR= + +CWD="$(pwd)" + +if [ "$0" != "${0%/*}" ]; then + SOURCE_DIR="$(cd -- "${0%/*}/" && pwd -P)" +else + SOURCE_DIR="$(pwd -P)" +fi + +quest_version="$(grep quest_version "$SOURCE_DIR"/data/quest.dat)" +quest_version="${quest_version%\"*}" + +PRGNAM=zelda-xd2-mercuris-chess +VERSION="${quest_version#*\"}" + +shift + +install_args= + +while [ $# -gt 0 ]; do + arg="$1"; shift + case "${arg%%=*}" in + DATANAME|DESTDIR|PREFIX ) + eval "${arg%%=*}=\"\${arg#*=}\"" + ;; + BINDIR|DATADIR|DATAROOTDIR|DOCDIR|MANDIR|SYSCONFDIR ) + install_args=1 + eval "${arg%%=*}=\"\${arg#*=}\"" + ;; + * ) + die : "WARNING: Variable '${arg%%=*}' was not used by $PRGNAM." + ;; + esac +done + +PREFIX="${PREFIX:-/usr/local}" +BINDIR="${BINDIR:-${PREFIX}/bin}" +DOCDIR="${DOCDIR:-${PREFIX}/share/doc}/$PRGNAM-$VERSION" +MANDIR="${MANDIR:-${PREFIX}/share/man}" +DATANAME="${DATANAME:-data.solarus}" +DATAROOTDIR="${DATAROOTDIR:-${PREFIX}/share}" +DATADIR="${DATADIR:-${DATAROOTDIR}}/solarus/$PRGNAM" +SYSCONFDIR="${SYSCONFDIR:-${PREFIX}/etc}" +DESTDIR="${DESTDIR:-}" + +is_absolute "$PREFIX" || PREFIX="$CWD/$PREFIX" + +if [ -n "$install_args" ]; then + for i in \$BINDIR \$DATADIR \$DATAROOTDIR \$DOCDIR \$MANDIR \$SYSCONFDIR; do + eval "dest=\"$i\"" + is_absolute "${dest:?}" || eval "${i#*$}=\"\${PREFIX}/$i\"" + done +fi + +#################### +### Project Code ### +#################### + +build_bin () { + command -p rm -f -- "$CWD/$PRGNAM" + printf 'Generating %s script...\n' "$PRGNAM" + printf '#!/bin/sh\nsolarus-run %s "$@"\n' "$DATADIR" > "$CWD/$PRGNAM" +} + +build_data () { + command -p rm -f -- "$CWD/$DATANAME" + printf 'Generating %s...\n' "$DATANAME" + ( + cd -- "${SOURCE_DIR}"/data/ + command -p find . -type f \( \ + -name '*.spc' -o \ + -name '*.ogg' -o \ + -name '*.it' -o \ + -name '*.png' -o \ + -name '*.dat' -o \ + -name '*.lua' -o \ + -name '*.ttf' -o \ + -name '*.ttc' -o \ + -name '*.fon' -o \ + -name '*.glsl' \ + \) -exec zip -9 -q "$CWD/$DATANAME" {} + + ) +} + +icon_sizes='16 20 22 32 40 48 64 96 128 256 512 1024' + +case $INSTALL in + # install-assets + 4 ) + printf 'Installing assets...\n' + cmd mkdir -p -- "${DESTDIR}${DATAROOTDIR}/applications" + cmd mkdir -p -- "${DESTDIR}${DATAROOTDIR}/pixmaps" + cmd mkdir -p -- "${DESTDIR}${DOCDIR}" + cmd rm -f -- "${DESTDIR}${DOCDIR}/changelog.md" + cmd cp -- "${SOURCE_DIR}/changelog.md" "${DESTDIR}${DOCDIR}" + cmd rm -f -- "${DESTDIR}${DOCDIR}/license.txt" + cmd cp -- "${SOURCE_DIR}/license.txt" "${DESTDIR}${DOCDIR}" + cmd rm -f -- "${DESTDIR}${DOCDIR}/readme.md" + cmd cp -- "${SOURCE_DIR}/readme.md" "${DESTDIR}${DOCDIR}" + cmd rm -f -- "${DESTDIR}${DATAROOTDIR}/applications/$PRGNAM.desktop" + cmd cp -- "${SOURCE_DIR}/$PRGNAM.desktop" \ + "${DESTDIR}${DATAROOTDIR}/applications" + cmd rm -f -- "${DESTDIR}${DATAROOTDIR}/pixmaps/$PRGNAM.png" + cmd cp -- "${SOURCE_DIR}/data/logos/logo_2x.png" \ + "${DESTDIR}${DATAROOTDIR}/pixmaps/$PRGNAM.png" + + eval "set -- $icon_sizes" + for icon do + icon_dir="${DESTDIR}${DATAROOTDIR}/icons/hicolor/${icon}x${icon}/apps" + cmd mkdir -p -- "$icon_dir" + cmd rm -f -- "$icon_dir/$PRGNAM.png" + cmd cp -- "${SOURCE_DIR}/data/logos/icon_$icon.png" \ + "$icon_dir/$PRGNAM.png" + done + ;; + # clean + 3 ) + printf 'Removing %s...\n' "$DATANAME" + cmd rm -f -- "$CWD/$DATANAME" + cmd rm -f -- "$CWD/$PRGNAM" + ;; + # build + 2 ) + build_data + build_bin + ;; + # install + 1 ) + [ -f "$CWD/$DATANAME" ] || build_data
View file
zelda-xd2-mercuris-chess-v1.1.2.tar.bz2/zelda-xd2-mercuris-chess.desktop
Added
@@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Zelda XD2: Mercuris Chess +GenericName=Zelda fangame for the Solarus engine +Comment=Zelda XD2: Mercuris Chess (Parodic Zelda game) +Exec=zelda-xd2-mercuris-chess +Terminal=false +Type=Application +Icon=zelda-xd2-mercuris-chess +Categories=Game;AdventureGame;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.