org.polymc.PolyMC.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: cmake
  22. config-opts:
  23. - -DLauncher_PORTABLE=OFF
  24. build-options:
  25. env:
  26. JAVA_HOME: /usr/lib/sdk/openjdk17/jvm/openjdk-17
  27. JAVA_COMPILER: /usr/lib/sdk/openjdk17/jvm/openjdk-17/bin/javac
  28. sources:
  29. - type: git
  30. url: https://github.com/PolyMC/PolyMC.git
  31. commit: ca211558b5a4ee8b0dec3471c92f952002216532
  32. - type: patch
  33. path: patches/0001-Fix-DesktopServices.cpp-to-not-crash-when-using-flat.patch
  34. cleanup: [/share/applications/polymc.desktop]
  35. - name: openjdk17
  36. buildsystem: simple
  37. build-commands:
  38. - mkdir -p /app/jdk/
  39. - /usr/lib/sdk/openjdk17/install.sh
  40. - cp -r /app/jre /app/jdk/17
  41. cleanup: [/jre]
  42. - name: openjdk8
  43. buildsystem: simple
  44. build-commands:
  45. - /usr/lib/sdk/openjdk8/install.sh
  46. - cp -r /app/jre /app/jdk/8
  47. cleanup: [/jre]
  48. - name: xrandr
  49. buildsystem: autotools
  50. sources:
  51. - type: archive
  52. url: https://xorg.freedesktop.org/archive/individual/app/xrandr-1.5.1.tar.xz
  53. sha256: 7bc76daf9d72f8aff885efad04ce06b90488a1a169d118dea8a2b661832e8762
  54. cleanup: [/share/man, /bin/xkeystone]
  55. - name: prime-run
  56. buildsystem: simple
  57. build-commands:
  58. - install -Dm755 prime-run /app/bin/prime-run
  59. sources:
  60. - type: file
  61. path: prime-run
  62. - name: gamemode
  63. buildsystem: meson
  64. config-opts:
  65. - -Dwith-sd-bus-provider=no-daemon
  66. - -Dwith-examples=false
  67. sources:
  68. - type: git
  69. url: https://github.com/FeralInteractive/gamemode
  70. tag: "1.6.1"
  71. - name: gamemoderun
  72. buildsystem: simple
  73. build-commands:
  74. - install -Dm755 data/gamemoderun -t /app/bin
  75. sources:
  76. - type: git
  77. url: https://github.com/FeralInteractive/gamemode
  78. tag: 1.6.1