mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-06 10:04:29 +00:00
Lakka 5.x Switch changes (#1853) Lakka v5.x switchroot 5.1.2 (#1871) Fix Switch Issue's in upstream 5.x (#1888) Minor Switch Changes (#1893) Lakka v5.x switch 3 (#1895) Lakka v5.x switch 4 (#1898) L4T: Xorg-server: Fix build issue (#1924) Switch: remove ra patch Lakka v5.x switch 6 (#1926) Cleanups, More LibreELEC Stuff, more permission fixes, Misc switch stuff. (#1930) Switch: U-Boot: bump version to 2024-NX02 (#1946) L4T/Ayn post-upstreaming fixes - retroarch_joypad_autoconfig: remove spaces from file names - retroarch: remove Switch specific patch merged upstream - libXv: move to L4T packages folder (package removed in upstream) - bring some packages from v5.x to L4T packages - ffmpeg: remove vulkan - remove stella core from Switch build (missing C++ headers) - Ayn/Odin: use proper kernel arg to not hide kernel messages in console - connman: add wpa_supplicant support back
30 lines
1.2 KiB
Makefile
30 lines
1.2 KiB
Makefile
PKG_NAME="joycond"
|
|
PKG_DEPENDS_TARGET="toolchain cmake:host libevdev systemd"
|
|
PKG_SITE="https://github.com/DanielOgorchock/joycond"
|
|
if [ "${PROJECT}" = "L4T" -a "${DEVICE}" = "Switch" ]; then
|
|
PKG_VERSION="c83539a8995040e8daf6912dab32a11082e75acf"
|
|
PKG_SHA256="10b043f226e49b17f1025ded37257ca096ed9fac5f22bbe91cd12cd6e7882835"
|
|
PKG_URL="https://gitlab.com/switchroot/userspace/joycond/-/archive/linux/joycond-linux.tar.gz"
|
|
else
|
|
PKG_VERSION="2d3f553060291f1bfee2e49fc2ca4a768b289df8"
|
|
PKG_SHA256="34ba2a4ffd35f2b2bbebd8ce47d17f2238d991bc6262653d0617b28f864e4b63"
|
|
PKG_URL="https://github.com/DanielOgorchock/joycond/archive/${PKG_VERSION}.tar.gz"
|
|
fi
|
|
PKG_LONGDESC="Joycon service"
|
|
|
|
PKG_TOOLCHAIN="cmake-make"
|
|
|
|
post_makeinstall_target() {
|
|
rm -r ${INSTALL}/etc/modules-load.d
|
|
mv -v ${INSTALL}/lib/* ${INSTALL}/usr/lib/ && rmdir ${INSTALL}/lib
|
|
mv -v ${INSTALL}/etc/systemd ${INSTALL}/usr/lib/systemd
|
|
mkdir -p ${INSTALL}/usr/lib/udev
|
|
mv -v ${INSTALL}/usr/lib/rules.d ${INSTALL}/usr/lib/udev/
|
|
sed -e 's|^WorkingDirectory=.*$|WorkingDirectory=/var|g' \
|
|
-i ${INSTALL}/usr/lib/systemd/system/joycond.service
|
|
}
|
|
|
|
post_install() {
|
|
enable_service joycond.service
|
|
}
|