distribution/packages/emulators/tools/retroarch-joypads/package.mk
fewtarius 9cda7d56cf
* Fix dmcfreq and gpufreq function so it works correctly across all devices.
* Fix a few emulation issues by updating cores.
* Fix failure to make .es_cache temp directory correctly during builds.
2023-07-12 22:27:00 +00:00

32 lines
758 B
Makefile

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020-present Fewtarius
PKG_NAME="retroarch-joypads"
PKG_VERSION="83a6184dd201b5297f0c7440a081237ed0cb1fa7"
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
}