Merge pull request #376 from travis134/doom-scan-integrate

Doom scan integrate
This commit is contained in:
fewtarius 2022-08-24 17:11:29 -04:00 committed by GitHub
commit e476a6f24f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 4 deletions

View file

@ -0,0 +1,22 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2022-present travis134
PKG_NAME="doomscan"
PKG_VERSION="3bba0abe4dd13c7c77f6d5e355a8e70ee650720a"
PKG_ARCH="any"
PKG_SITE="https://github.com/travis134/doomscan"
PKG_URL="${PKG_SITE}.git"
PKG_PRIORITY="optional"
PKG_SECTION="tools"
PKG_SHORTDESC="Creates .doom files based on user selection of WAD and PK3 files."
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/share
cp -r ${PKG_BUILD}/doomscan ${INSTALL}/usr/share
cp "${PKG_BUILD}/_Scan Doom Games.sh" ${INSTALL}/usr/share/doomscan
chmod 0755 ${INSTALL}/usr/share/doomscan "${INSTALL}/usr/share/doomscan/_Scan Doom Games.sh"
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_DIR}/sources/autostart/common/* ${INSTALL}/usr/lib/autostart/common
}

View file

@ -0,0 +1,11 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2022-present travis134
#If doomscan does not exist copy doomscan folder to roms/doom
if [ ! -e "/storage/roms/doom/doomscan" ]; then
cp -r /usr/share/doomscan /storage/roms/doom
chmod +x /storage/roms/doom/doomscan -R
mv "/storage/roms/doom/doomscan/_Scan Doom Games.sh" "/storage/roms/doom/_Scan Doom Games.sh"
fi

View file

@ -11,7 +11,7 @@ then
mv /storage/roms/ports/ThemeMaster/ThemeMaster.sh /storage/roms/ports/ThemeMaster.sh
fi
#Check if gamelist.xml exists, if not create gamelist.xml to hide portmaster by default.
#Check if gamelist.xml exists, if not create gamelist.xml to hide ThemeMaster by default.
if [[ ! -e /storage/roms/ports/gamelist.xml ]];
then
touch /storage/roms/ports/gamelist.xml
@ -26,7 +26,7 @@ touch /storage/roms/ports/gamelist.xml
</gameList>
EOF
#If gamelist.xml exists and no portmaster entry exists then add portmaster entry & set to hidden.
#If gamelist.xml exists and no ThemeMaster entry exists then add ThemeMaster entry & set to hidden.
else
if ! grep -R "ThemeMaster" "/storage/roms/ports/gamelist.xml"
then

View file

@ -2212,7 +2212,7 @@
<release>1993</release>
<hardware>game engine</hardware>
<path>/storage/roms/doom</path>
<extension>.doom</extension>
<extension>.sh .SH .doom</extension>
<command>/usr/bin/runemu.sh %ROM% -P%SYSTEM% --core=%CORE% --emulator=%EMULATOR% --controllers="%CONTROLLERSCONFIG%"</command>
<platform>pc</platform>
<theme>doom</theme>

View file

@ -7,7 +7,7 @@ PKG_SITE="www.jelos.org"
PKG_SECTION="virtual"
PKG_LONGDESC="Game support software metapackage."
PKG_GAMESUPPORT="sixaxis rg351p-js2xbox gptokeyb jstest-sdl gamecontrollerdb jelosaddons sdljoytest"
PKG_GAMESUPPORT="sixaxis rg351p-js2xbox gptokeyb jstest-sdl gamecontrollerdb jelosaddons sdljoytest doomscan"
PKG_DEPENDS_TARGET="${PKG_GAMESUPPORT}"