org.polymc.PolyMC.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. app-id: org.polymc.PolyMC
  2. runtime: org.kde.Platform
  3. runtime-version: "5.15-21.08"
  4. sdk: org.kde.Sdk
  5. sdk-extensions:
  6. - org.freedesktop.Sdk.Extension.openjdk17
  7. - org.freedesktop.Sdk.Extension.openjdk8
  8. command: polymc
  9. finish-args:
  10. - --share=ipc
  11. - --socket=x11
  12. - --socket=wayland
  13. - --device=dri
  14. - --share=network
  15. - --socket=pulseaudio
  16. # for Discord RPC mods
  17. - --filesystem=xdg-run/app/com.discordapp.Discord:create
  18. modules:
  19. # Compile PolyMC
  20. - name: compile
  21. buildsystem: simple
  22. build-commands:
  23. - ls /usr/lib/sdk/openjdk17/jvm/openjdk-17
  24. - mkdir build
  25. - mkdir -p /app/bin
  26. - cd build && JAVA_HOME=/usr/lib/sdk/openjdk17/jvm/openjdk-17 PATH=$JAVA_HOME:$PATH JAVA_COMPILER=/usr/lib/sdk/openjdk17/jvm/openjdk-17/bin/javac cmake -DLauncher_LAYOUT=lin-system -DCMAKE_INSTALL_PREFIX=/app/ .. && make -j$(nproc) install
  27. sources:
  28. - type: git
  29. url: https://github.com/PolyMC/PolyMC.git
  30. tag: 1.0.6
  31. x-checker-data:
  32. type: git
  33. commit: 204e3dca22e5d4f14ded50e1dcd3f0af9ff3d88e
  34. - type: patch
  35. path: patches/0001-Fix-DesktopServices.cpp-to-not-crash-when-using-flat.patch
  36. cleanup: [/share/applications/polymc.desktop]
  37. - name: openjdk17
  38. buildsystem: simple
  39. build-commands:
  40. - mkdir -p /app/jdk/
  41. - /usr/lib/sdk/openjdk17/install.sh
  42. - cp -r /app/jre /app/jdk/17
  43. cleanup: [/jre]
  44. - name: openjdk8
  45. buildsystem: simple
  46. build-commands:
  47. - /usr/lib/sdk/openjdk8/install.sh
  48. - cp -r /app/jre /app/jdk/8
  49. cleanup: [/jre]
  50. - name: xrandr
  51. buildsystem: autotools
  52. sources:
  53. - type: archive
  54. url: https://xorg.freedesktop.org/archive/individual/app/xrandr-1.5.1.tar.xz
  55. sha256: 7bc76daf9d72f8aff885efad04ce06b90488a1a169d118dea8a2b661832e8762
  56. cleanup: [/share/man, /bin/xkeystone]
  57. # Prime-Run is a wrapper program for running minecraft with NVIDIA Graphics on a hybrid-gpu device
  58. - name: prime-run
  59. buildsystem: simple
  60. build-commands:
  61. - install -Dm755 prime-run /app/bin/prime-run
  62. sources:
  63. - type: file
  64. path: prime-run