Emulators, Applications and Native games folders for opks, libopk updated to the latest version
This commit is contained in:
parent
03d65c70f2
commit
d7a8d0c6ac
|
@ -0,0 +1 @@
|
||||||
|
This is the folder where you can put all your standalone applications opks
|
|
@ -0,0 +1 @@
|
||||||
|
This is the folder where you can put all your emulators opks
|
|
@ -0,0 +1 @@
|
||||||
|
This is the folder where you can put all your standalone games opks
|
|
@ -15,32 +15,53 @@ do_preinst()
|
||||||
|
|
||||||
do_postinst()
|
do_postinst()
|
||||||
{
|
{
|
||||||
|
################
|
||||||
|
# Fix recovery #
|
||||||
|
################
|
||||||
notif " 2/5 FIX RECOVERY GPIO MANAGER"
|
notif " 2/5 FIX RECOVERY GPIO MANAGER"
|
||||||
rw
|
rw
|
||||||
cp -a /tmp/funkey_gpio_management /usr/local/sbin/
|
cp -a /tmp/funkey_gpio_management /usr/local/sbin/
|
||||||
chmod +x /usr/local/sbin/funkey_gpio_management
|
chmod +x /usr/local/sbin/funkey_gpio_management
|
||||||
ro
|
ro
|
||||||
|
|
||||||
|
#################
|
||||||
|
# Resize Rootfs #
|
||||||
|
#################
|
||||||
notif " 3/5 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE"
|
notif " 3/5 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE"
|
||||||
resize2fs ${root_part}
|
resize2fs ${root_part}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
notif " CANNOT RESIZE ROOT^FILESYSTEM"
|
notif " CANNOT RESIZE ROOT^FILESYSTEM"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#############
|
||||||
|
# Copy OPKs #
|
||||||
|
#############
|
||||||
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
|
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
|
||||||
folder_opks_emulators=/mnt/Emulators
|
|
||||||
mkdir -p "$folder_opks_emulators"
|
# Mount Rootfs
|
||||||
mkdir -p ${root_mount}
|
mkdir -p ${root_mount}
|
||||||
mount -t ext4 ${root_part} ${root_mount}
|
mount -t ext4 ${root_part} ${root_mount}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
notif "CANNOT MOUNT ROOT^FILESYSTEM"
|
notif "CANNOT MOUNT ROOT^FILESYSTEM"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
|
|
||||||
|
# Copy OPKs
|
||||||
|
shared_partition=/mnt/
|
||||||
|
mkdir -p "$shared_partition"
|
||||||
|
cp -r ${root_mount}/usr/local/share/OPKs/* "$shared_partition"
|
||||||
|
|
||||||
|
# Unmount Rootfs
|
||||||
umount ${root_mount}
|
umount ${root_mount}
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
|
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#####################
|
||||||
|
# Erase update file #
|
||||||
|
#####################
|
||||||
for file in $(ls /mnt/FunKey-*.fwu); do
|
for file in $(ls /mnt/FunKey-*.fwu); do
|
||||||
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
|
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
|
||||||
rm -f "${file}"
|
rm -f "${file}"
|
||||||
|
|
|
@ -48,8 +48,8 @@ define FCEUX_INSTALL_TARGET_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define FCEUX_CREATE_OPK
|
define FCEUX_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(FCEUX_PKGDIR)/opk/nes $(TARGET_DIR)/usr/games/opk/nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(FCEUX_PKGDIR)/opk/nes $(TARGET_DIR)/usr/local/share/OPKs/Emulators/nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
FCEUX_POST_INSTALL_TARGET_HOOKS += FCEUX_CREATE_OPK
|
FCEUX_POST_INSTALL_TARGET_HOOKS += FCEUX_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ define PCSX_REARMED_INSTALL_TARGET_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PCSX_REARMED_CREATE_OPK
|
define PCSX_REARMED_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR)/opk/ps1 $(TARGET_DIR)/usr/games/opk/ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR)/opk/ps1 $(TARGET_DIR)/usr/local/share/OPKs/Emulators/ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
PCSX_REARMED_POST_INSTALL_TARGET_HOOKS += PCSX_REARMED_CREATE_OPK
|
PCSX_REARMED_POST_INSTALL_TARGET_HOOKS += PCSX_REARMED_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,8 @@ define POCKETSNES_INSTALL_TARGET_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define POCKETSNES_CREATE_OPK
|
define POCKETSNES_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(POCKETSNES_PKGDIR)/opk/snes $(TARGET_DIR)/usr/games/opk/snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(POCKETSNES_PKGDIR)/opk/snes $(TARGET_DIR)/usr/local/share/OPKs/Emulators/snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
POCKETSNES_POST_INSTALL_TARGET_HOOKS += POCKETSNES_CREATE_OPK
|
POCKETSNES_POST_INSTALL_TARGET_HOOKS += POCKETSNES_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ define COMMANDER_INSTALL_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define COMMANDER_CREATE_OPK
|
define COMMANDER_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Applications
|
||||||
cd $(@D); \
|
cd $(@D); \
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs \
|
$(HOST_DIR)/usr/bin/mksquashfs \
|
||||||
opkg/default.funkey-s.desktop \
|
opkg/default.funkey-s.desktop \
|
||||||
|
@ -33,7 +33,7 @@ define COMMANDER_CREATE_OPK
|
||||||
res/Fiery_Turk.ttf \
|
res/Fiery_Turk.ttf \
|
||||||
res/FreeSans.ttf \
|
res/FreeSans.ttf \
|
||||||
$(TARGET_DIR)/usr/bin/commander \
|
$(TARGET_DIR)/usr/bin/commander \
|
||||||
$(TARGET_DIR)/usr/games/opk/commander-funkey-s.opk \
|
$(TARGET_DIR)/usr/local/share/OPKs/Applications/commander-funkey-s.opk \
|
||||||
-all-root -noappend -no-exports -no-xattrs -noappend; \
|
-all-root -noappend -no-exports -no-xattrs -noappend; \
|
||||||
rm -rf $(TARGET_DIR)/usr/bin/commander
|
rm -rf $(TARGET_DIR)/usr/bin/commander
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -26,9 +26,9 @@ GNUBOY_CONF_OPTS += --without-fb \
|
||||||
GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
||||||
|
|
||||||
define GNUBOY_CREATE_OPK
|
define GNUBOY_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/games/opk/gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gb $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/games/opk/gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(GNUBOY_PKGDIR)/opk/gbc $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
|
GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@ define GPSP_INSTALL_TARGET_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define GPSP_CREATE_OPK
|
define GPSP_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(GPSP_PKGDIR)/opk/gba $(TARGET_DIR)/usr/games/opk/gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(GPSP_PKGDIR)/opk/gba $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
GPSP_POST_INSTALL_TARGET_HOOKS += GPSP_CREATE_OPK
|
GPSP_POST_INSTALL_TARGET_HOOKS += GPSP_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# libopk
|
# libopk
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
LIBOPK_VERSION = libopk-FunKey-1.0.0
|
LIBOPK_VERSION = libopk-FunKey-1.0.1
|
||||||
LIBOPK_SITE_METHOD = git
|
LIBOPK_SITE_METHOD = git
|
||||||
LIBOPK_SITE = https://github.com/FunKey-Project/libopk.git
|
LIBOPK_SITE = https://github.com/FunKey-Project/libopk.git
|
||||||
|
|
||||||
|
|
|
@ -30,12 +30,12 @@ MEDNAFEN_CONF_OPTS += --disable-ss --disable-ssfplay --disable-fancy-scalers
|
||||||
MEDNAFEN_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
MEDNAFEN_CONF_ENV += SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
|
||||||
|
|
||||||
define MEDNAFEN_CREATE_OPK
|
define MEDNAFEN_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/gamegear $(TARGET_DIR)/usr/games/opk/gamegear_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/gamegear $(TARGET_DIR)/usr/local/share/OPKs/Emulators/gamegear_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/lynx $(TARGET_DIR)/usr/games/opk/lynx_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/lynx $(TARGET_DIR)/usr/local/share/OPKs/Emulators/lynx_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/ngp $(TARGET_DIR)/usr/games/opk/ngp_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/ngp $(TARGET_DIR)/usr/local/share/OPKs/Emulators/ngp_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/pce $(TARGET_DIR)/usr/games/opk/pce_mednaefn_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/pce $(TARGET_DIR)/usr/local/share/OPKs/Emulators/pce_mednaefn_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/wonderswan $(TARGET_DIR)/usr/games/opk/wonderswan_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(MEDNAFEN_PKGDIR)/opk/wonderswan $(TARGET_DIR)/usr/local/share/OPKs/Emulators/wonderswan_mednafen_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
MEDNAFEN_POST_INSTALL_TARGET_HOOKS += MEDNAFEN_CREATE_OPK
|
MEDNAFEN_POST_INSTALL_TARGET_HOOKS += MEDNAFEN_CREATE_OPK
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Sega Master System
|
Name=Master System
|
||||||
Comment=Sega Master System Emulator
|
Comment=Sega Master System Emulator
|
||||||
Icon=sms
|
Icon=sms
|
||||||
Exec=/usr/games/launchers/sms_launch.sh %f
|
Exec=/usr/games/launchers/sms_launch.sh %f
|
||||||
|
|
|
@ -45,9 +45,9 @@ define PICODRIVE_INSTALL_TARGET_CMDS
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PICODRIVE_CREATE_OPK
|
define PICODRIVE_CREATE_OPK
|
||||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/games/opk
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Emulators
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(PICODRIVE_PKGDIR)/opk/megadrive $(TARGET_DIR)/usr/games/opk/megadrive_picodrive_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(PICODRIVE_PKGDIR)/opk/megadrive $(TARGET_DIR)/usr/local/share/OPKs/Emulators/megadrive_picodrive_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
$(HOST_DIR)/usr/bin/mksquashfs $(PICODRIVE_PKGDIR)/opk/sms $(TARGET_DIR)/usr/games/opk/sms_picodrive_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
$(HOST_DIR)/usr/bin/mksquashfs $(PICODRIVE_PKGDIR)/opk/sms $(TARGET_DIR)/usr/local/share/OPKs/Emulators/sms_picodrive_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
|
||||||
endef
|
endef
|
||||||
PICODRIVE_POST_INSTALL_TARGET_HOOKS += PICODRIVE_CREATE_OPK
|
PICODRIVE_POST_INSTALL_TARGET_HOOKS += PICODRIVE_CREATE_OPK
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue