distribution/packages/emulators/tools/retroarch-joypads/package.mk
fewtarius 984ad9d91d
* Update emulators, cores, and support packages.
* Correct a bug in our X-Box 360 Retroarch gamepad configuration file.
* Add mame to Game and Watch + enable on all devices (another docs update to follow).
* Enable EMMC on Powkiddy x55 to allow JELOS to be installed to it.
2024-01-17 22:10:37 +00:00

32 lines
782 B
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="retroarch-joypads"
PKG_VERSION="0bf9607ca689ac806420beeea2feb4270af9aed2"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/libretro/retroarch-joypad-autoconfig"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="RetroArch joypad autoconfigs."
PKG_TOOLCHAIN="manual"
make_target() {
:
}
makeinstall_target() {
INSTALLDIR="${INSTALL}/usr/share/libretro/autoconfig"
mkdir -p ${INSTALLDIR}
for JOYDIR in linuxraw sdl2 udev x xinput
do
cp ${PKG_BUILD}/${JOYDIR}/*cfg ${INSTALLDIR}
done
if [ -d "${PKG_DIR}/gamepads" ]
then
cp -r ${PKG_DIR}/gamepads/* ${INSTALLDIR} ||:
fi
}
post_install() {
enable_service tmp-joypads.mount
}