diff --git a/build-flatpak.sh b/build-flatpak.sh deleted file mode 100755 index b5f00423..00000000 --- a/build-flatpak.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=$PWD -PREVIOUS_DIR=$PWD - -echo "Welcome to the RetroDECK flatpak builder." -echo "This script is helping the flatpak building in $INSTALL_DIR." - -read -n 1 -r -s -p $'Press enter to continue...\n' -echo "Building RetroDECK, please stand by." - -pacman -S flatpak-builder -flatpak install org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 - -# Installing 351elec-emulationstation -cd $INSTALL_DIR -git clone --recursive https://github.com/351ELEC/351elec-emulationstation emulationstation -# TODO: one day I will have to fork this emustation... -# applying patches -cp $INSTALL_DIR/patches/Splash.h $INSTALL_DIR/emulationstation/es-core/src/Splash.h -cp $INSTALL_DIR/patches/GuiMenu.cpp $INSTALL_DIR/emulationstation/es-app/src/guis/GuiMenu.cpp -# pathes applied -cd emulationstation -sudo pacman -S base-devel cmake freeimage sdl2_mixer sdl2 rapidjson boost -cmake -DENABLE_EMUELEC=1 -DGLES2=0 -DDISABLE_KODI=1 -DENABLE_FILEMANAGER=0 -DCEC=0 -DRG552=1 -make -j$(nproc) - -cd $INSTALL_DIR -flatpak-builder retrodeck-flatpak com.xargon.retrodeck.yml --force-clean - -# Useful commands: -# flatpak-builder --user --install --force-clean retrodeck-flatpak com.xargon.retrodeck.yml -# flatpak run com.xargon.retrodeck -# -# flatpak --user remote-add --no-gpg-verify xargon-dev repo -# flatpak --user install xargon-dev com.xargon.retrodeck -# -# flatpak run --command=/bin/bash com.xargon.retrodeck - -echo "Building terminated, you can install retrodeck by typing `flatpak run com.xargon.retrodeck`." - -cd $PREVIOUS_DIR diff --git a/com.xargon.retrodeck.yml b/com.xargon.retrodeck.yml index 2ff1fc8e..dc2a8c10 100644 --- a/com.xargon.retrodeck.yml +++ b/com.xargon.retrodeck.yml @@ -17,6 +17,7 @@ finish-args: - --talk-name=org.freedesktop.ScreenSaver - --talk-name=org.freedesktop.PowerManagement.Inhibit - --talk-name=org.freedesktop.login1 + #- --filesystem=host #- --env=LD_LIBRARY_PATH=/app/lib #- --env=PATH=/app/bin:/usr/bin @@ -46,7 +47,7 @@ modules: cleanup: - /share/man - # needed for reatroarch + # RA dependency - name: libusb config-opts: - --disable-static @@ -67,6 +68,63 @@ modules: post-install: - install -Dm644 COPYING /app/share/licenses/libusb/COPYING + # ES-DE dependency + - name: pugixml + buildsystem: cmake + config-opts: + - -DBUILD_SHARED_LIBS=on . + sources: + - type: archive + url: https://github.com/zeux/pugixml/releases/download/v1.11.4/pugixml-1.11.4.tar.gz + sha256: 8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716 + + # ES-DE dependency + - name: freeimage + no-autogen: true + build-options: + #C++17 is not supported + cxxflags: -std=c++14 + make-args: + - DESTDIR=/app + sources: + - type: archive + url: http://downloads.sourceforge.net/freeimage/FreeImage3180.zip + sha256: f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd + - type: shell + commands: + - sed -i 's|-o root -g root ||' ./Makefile.gnu + - sed -i 's|/usr|/app|' ./Makefile.gnu + + # ES-DE dependency + - name: ffmpeg + config-opts: + - --enable-shared + - --disable-static + - --enable-gnutls + - --disable-doc + - --disable-programs + - --disable-encoders + - --disable-muxers + - --enable-encoder=png + sources: + - type: archive + url: https://www.ffmpeg.org/releases/ffmpeg-4.2.3.tar.xz + sha256: 9df6c90aed1337634c1fb026fb01c154c29c82a64ea71291ff2da9aacb9aad31 + cleanup: + - /share/ffmpeg/examples + + - name: emulationstation-de + buildsystem: cmake + config-opts: + - -DCMAKE_INSTALL_PREFIX=/app + cleanup: + - es-app + - es-core + sources: + - type: git + url: https://gitlab.com/leonstyhre/emulationstation-de.git + branch: stable-1.2 + - name: retroarch buildsystem: simple build-commands: @@ -128,169 +186,16 @@ modules: # - name: dolphin # - name: arduboy - # Needed for building EmulationStation - - name: freeimage - no-autogen: true - post-install: - - ls -ln /app - build-options: - #C++17 is not supported - cxxflags: -std=c++14 - make-args: - - DESTDIR=/app - sources: - - type: archive - url: http://downloads.sourceforge.net/freeimage/FreeImage3180.zip - sha256: f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd - - type: shell - commands: - - sed -i 's|-o root -g root ||' ./Makefile.gnu - - sed -i 's|/usr|/app|' ./Makefile.gnu - - #- name: 351elec-emulationstation - # buildsystem: simple - # build-commands: - # - install -Dm755 Splash.h -t /app/emulationstation/es-core/src/ - # - install -Dm755 GuiMenu.cpp -t /app/emulationstation/es-app/src/guis/ - # - cd /app/emulationstation - # - cmake -DENABLE_EMUELEC=1 -DGLES2=0 -DDISABLE_KODI=1 -DENABLE_FILEMANAGER=0 -DCEC=0 -DRG552=1 - # - make -j$(nproc) - # - ln -s emulationstation /app/bin/emulationstation - ## make-args: - ## - -DENABLE_EMUELEC=1 - ## - -DGLES2=0 - ## - -DDISABLE_KODI=1 - ## - -DENABLE_FILEMANAGER=0 - ## - -DCEC=0 - ## - -DRG552=1 - ## cleanup: ['*'] - # sources: - # - type: git - # url: https://github.com/351ELEC/351elec-emulationstation.git - # branch: 6b704cfa1161090de4ca1b5ec343ebab2060e7fc - # #- type: file - # # url: https://github.com/351ELEC/351elec-emulationstation/archive/6b704cfa1161090de4ca1b5ec343ebab2060e7fc.zip - # # sha256: 5d659033da662bf85d5986609e4d92c55e3c1c4a4c79e2461350134f509c47ac - # - type: file - # path: patches/Splash.h - # - type: file - # path: patches/GuiMenu.cpp - - #- name: 351elec-emulationstation-prebuilt - # buildsystem: simple - # build-commands: - # - mkdir -p /app/emulationstation - # - rsync -avr --ignore-existing --remove-source-files * /app/emulationstation - # - ln -s /app/emulationstation/emulationstation /app/bin/emulationstation - # #post-install: - # # clean the /app/emulationstation folder from the source files - # #- cp lib*.so.* /app/lib/ - # #cleanup: ['*'] - # sources: - # - type: dir - # path: emulationstation - # - type: file - # path: es_systems.cfg - # - type: file - # path: es_settings.cfg - # - type: file - # path: es_input.cfg - # #- type: file - # # path: libfreeimage.so.3 - # #- type: file - # # path: libvlc.so.5 - # #- type: file - # # path: libGLU.so.1 - # #- type: file - # # path: libjpeg.so.8 - # #- type: file - # # path: libjxrglue.so.0 - # #- type: file - # # path: libOpenEXR-3_1.so.30 - # #- type: file - # # path: libIex-3_1.so.30 - # #- type: file - # # path: libImath-3_1.so.29 - # #- type: file - # # path: libraw.so.20 - # #- type: file - # # path: libvlccore.so.9 - # #- type: file - # # path: libjpegxr.so.0 - # #- type: file - # # path: libIlmThread-3_1.so.30 - # #- type: file - # # path: libjasper.so.4 - # #- type: file - # # path: libidn.so.12 - # #- type: file - # # path: libc.so.6 - # #- type: file - # # path: libcurl.so.4 - - - name: 351elec-emulationstation - buildsystem: simple - build-commands: - #- install -Dm755 Splash.h -t /app/emulationstation/es-core/src/ - #- install -Dm755 GuiMenu.cpp -t /app/emulationstation/es-app/src/guis/ - - ls -ln - - cmake . -DDISABLE_KODI=1 - - make - - ln -s emulationstation /app/bin/emulationstation - # cleanup: ['*'] - sources: - - type: git - url: https://github.com/batocera-linux/batocera-emulationstation.git - branch: 779548e217311edb15d21a5316033292d2b452fc - #- type: file - # path: patches/Splash.h - #- type: file - # path: patches/GuiMenu.cpp - - #- name: emulationstation-de - # buildsystem: simple - # build-commands: - # - unappimage download - # - rsync -avr --ignore-existing --remove-source-files ./squashfs-root/usr/ /app/ - # - ln -s /app/share/emulationstation /app/emulationstation - # sources: - # - type: file - # url: https://gitlab.com/leonstyhre/emulationstation-de/-/package_files/32296532/download - # sha256: 1fd3e437539d54e90d0a17b4577a8c91a1987943470fcfbf3badba99d8dac879 - - name: art-book-next buildsystem: simple build-commands: - mkdir -p /app/emulationstation/themes/art-book-next - mv -f * /app/emulationstation/themes/art-book-next/ - cleanup: ['*'] sources: - type: git url: https://github.com/anthonycaccese/es-theme-art-book-next.git branch: eaf73a4eefde22791681c7f430a238fb324bdeaf - # TODO 351elec-es-packages batocera-config batocera-scraper batocera-settings runemu.py setsettings.py - - #- name: glibc - # buildsystem: simple - # build-commands: - # - tar --use-compress-program=unzstd -xvf glibc-2.35-3-x86_64.pkg.tar.zst - # - cp -r usr/lib/* /app/lib/ - # cleanup: ['*'] - # sources: - # - type: file - # path: glibc-2.35-3-x86_64.pkg.tar.zst - - #- name: lib32-glibc - # buildsystem: simple - # build-commands: - # - tar --use-compress-program=unzstd -xvf lib32-glibc-2.35-3-x86_64.pkg.tar.zst - # - cp -r usr/lib/* /app/lib/ - # cleanup: ['*'] - # sources: - # - type: file - # path: lib32-glibc-2.35-3-x86_64.pkg.tar.zst - - name: retrodeck buildsystem: simple build-commands: @@ -402,25 +307,15 @@ modules: - mkdir -p ~/retrodeck/roms/gc - mkdir -p ~/retrodeck/roms/3ds - #- install -Dm755 retrodeck.sh -t /app/retrodeck/ - - install -Dm755 export_func.sh -t /app/retrodeck/ - #- ln -s /app/retrodeck/retrodeck.sh /app/bin/retrodeck.sh - - ln -s /app/retrodeck/export_func.sh /app/bin/export_func.sh - - rm -f /app/retrodeck/retroarch/.config/retroarch.cfg - mv retroarch.cfg /app/retrodeck/retroarch/.config/ - - mkdir -p /app/retrodeck/.config/ - - touch /app/retrodeck/.config/.OS_ARCH - - echo "DECK" >> /app/retrodeck/.config/.OS_ARCH + #- mkdir -p /app/retrodeck/.config/ + #- touch /app/retrodeck/.config/.OS_ARCH + #- echo "DECK" >> /app/retrodeck/.config/.OS_ARCH - # move other files (check old install script) #cleanup: ['*'] sources: - #- type: file - # path: retrodeck.sh - - type: file - path: export_func.sh - type: file path: retroarch.cfg diff --git a/glibc-2.35-3-x86_64.pkg.tar.zst b/glibc-2.35-3-x86_64.pkg.tar.zst deleted file mode 100644 index 4e03a097..00000000 Binary files a/glibc-2.35-3-x86_64.pkg.tar.zst and /dev/null differ diff --git a/lib32-glibc-2.35-3-x86_64.pkg.tar.zst b/lib32-glibc-2.35-3-x86_64.pkg.tar.zst deleted file mode 100644 index 1b94718a..00000000 Binary files a/lib32-glibc-2.35-3-x86_64.pkg.tar.zst and /dev/null differ diff --git a/libGLU.so.1 b/libGLU.so.1 deleted file mode 100755 index ce043468..00000000 Binary files a/libGLU.so.1 and /dev/null differ diff --git a/libIex-3_1.so.30 b/libIex-3_1.so.30 deleted file mode 100755 index f0e6bf8d..00000000 Binary files a/libIex-3_1.so.30 and /dev/null differ diff --git a/libIlmThread-3_1.so.30 b/libIlmThread-3_1.so.30 deleted file mode 100755 index 8e5dcfdf..00000000 Binary files a/libIlmThread-3_1.so.30 and /dev/null differ diff --git a/libImath-3_1.so.29 b/libImath-3_1.so.29 deleted file mode 100755 index 28ab07f8..00000000 Binary files a/libImath-3_1.so.29 and /dev/null differ diff --git a/libOpenEXR-3_1.so.30 b/libOpenEXR-3_1.so.30 deleted file mode 100755 index e4795dca..00000000 Binary files a/libOpenEXR-3_1.so.30 and /dev/null differ diff --git a/libc.so.6 b/libc.so.6 deleted file mode 100755 index 3a50815b..00000000 Binary files a/libc.so.6 and /dev/null differ diff --git a/libcurl.so.4 b/libcurl.so.4 deleted file mode 100755 index ec991b07..00000000 Binary files a/libcurl.so.4 and /dev/null differ diff --git a/libfreeimage.so.3 b/libfreeimage.so.3 deleted file mode 100755 index cd369c50..00000000 Binary files a/libfreeimage.so.3 and /dev/null differ diff --git a/libidn.so.12 b/libidn.so.12 deleted file mode 100755 index d4ae2c9f..00000000 Binary files a/libidn.so.12 and /dev/null differ diff --git a/libjasper.so.4 b/libjasper.so.4 deleted file mode 100755 index a8fe044c..00000000 Binary files a/libjasper.so.4 and /dev/null differ diff --git a/libjpeg.so.8 b/libjpeg.so.8 deleted file mode 100755 index 2d4b5714..00000000 Binary files a/libjpeg.so.8 and /dev/null differ diff --git a/libjpegxr.so.0 b/libjpegxr.so.0 deleted file mode 100755 index ec2fb0da..00000000 Binary files a/libjpegxr.so.0 and /dev/null differ diff --git a/libjxrglue.so.0 b/libjxrglue.so.0 deleted file mode 100755 index a51bf45a..00000000 Binary files a/libjxrglue.so.0 and /dev/null differ diff --git a/libraw.so.20 b/libraw.so.20 deleted file mode 100755 index 97097e3a..00000000 Binary files a/libraw.so.20 and /dev/null differ diff --git a/libvlc.so.5 b/libvlc.so.5 deleted file mode 100755 index 73d094bc..00000000 Binary files a/libvlc.so.5 and /dev/null differ diff --git a/libvlccore.so.9 b/libvlccore.so.9 deleted file mode 100755 index d10a550c..00000000 Binary files a/libvlccore.so.9 and /dev/null differ diff --git a/res/logo.png b/res/logo.png old mode 100644 new mode 100755 index 3e839d33..1150e7de Binary files a/res/logo.png and b/res/logo.png differ