2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-23 22:46:49 +00:00
|
|
|
# Copyright (C) 2023-present - The JELOS Project (https://github.com/JustEnoughLinuxOS)
|
2022-10-08 22:49:14 +00:00
|
|
|
|
|
|
|
PKG_NAME="retroarch-joypads"
|
2023-10-11 10:12:36 +00:00
|
|
|
PKG_VERSION="0ce2aa145e7ac3ae552bfb15d2c6730e8ceefd56"
|
2022-10-08 22:49:14 +00:00
|
|
|
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
|
2023-02-16 22:40:39 +00:00
|
|
|
if [ -d "${PKG_DIR}/gamepads" ]
|
2022-10-08 22:49:14 +00:00
|
|
|
then
|
2023-02-16 22:40:39 +00:00
|
|
|
cp -r ${PKG_DIR}/gamepads/* ${INSTALLDIR} ||:
|
2022-10-08 22:49:14 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
enable_service tmp-joypads.mount
|
|
|
|
}
|