diff --git a/packages/emulators/tools/virtualgamepad/package.mk b/packages/emulators/tools/virtualgamepad/package.mk new file mode 100644 index 000000000..7e19e6347 --- /dev/null +++ b/packages/emulators/tools/virtualgamepad/package.mk @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS) + +PKG_NAME="virtualgamepad" +PKG_VERSION="a6e8459" +PKG_LICENSE="GPLv2" +PKG_SITE="https://github.com/macromorgan/input-wrapper" +PKG_URL="${PKG_SITE}.git" +PKG_DEPENDS_TARGET="toolchain linux" +PKG_TOOLCHAIN="make" + +makeinstall_target() { + mkdir -p ${INSTALL}/usr/bin + cp wrap ${INSTALL}/usr/bin/virtualgamepad + chmod 0755 ${INSTALL}/usr/bin/virtualgamepad +} + +post_install() { + enable_service virtualgamepad.service +} diff --git a/packages/emulators/tools/virtualgamepad/system.d/virtualgamepad.service b/packages/emulators/tools/virtualgamepad/system.d/virtualgamepad.service new file mode 100644 index 000000000..23af44bb5 --- /dev/null +++ b/packages/emulators/tools/virtualgamepad/system.d/virtualgamepad.service @@ -0,0 +1,9 @@ +[Unit] +Description=Virtual Gamepad Driver + +[Service] +Type=simple +ExecStart=/usr/bin/virtualgamepad + +[Install] +WantedBy=multi-user.target diff --git a/packages/virtual/gamesupport/package.mk b/packages/virtual/gamesupport/package.mk index 02c6822a8..36c786ad3 100644 --- a/packages/virtual/gamesupport/package.mk +++ b/packages/virtual/gamesupport/package.mk @@ -7,7 +7,7 @@ PKG_SITE="www.jelos.org" PKG_SECTION="virtual" PKG_LONGDESC="Game support software metapackage." -PKG_GAMESUPPORT="sixaxis gptokeyb jstest-sdl gamecontrollerdb sdljoytest control-gen" +PKG_GAMESUPPORT="sixaxis gptokeyb jstest-sdl gamecontrollerdb sdljoytest control-gen virtualgamepad" PKG_DEPENDS_TARGET="${PKG_GAMESUPPORT}"