From fedc835674952597c53857677b244f56ae10115b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 13 Feb 2023 00:15:11 +0200 Subject: [PATCH 21/21] flatpak: Add gtk4 modpack installer flatpak See osdn #47286 Signed-off-by: Marko Lindqvist --- Makefile.am | 1 + flatpak/build_flatpak.sh | 2 ++ flatpak/org.freeciv.mp.gtk4.yml | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 flatpak/org.freeciv.mp.gtk4.yml diff --git a/Makefile.am b/Makefile.am index c26617895c..9cf3b5f155 100644 --- a/Makefile.am +++ b/Makefile.am @@ -94,6 +94,7 @@ EXTRA_DIST = autogen.sh \ flatpak/org.freeciv.gtk322.yml \ flatpak/org.freeciv.gtk4.yml \ flatpak/org.freeciv.mp.gtk3.yml \ + flatpak/org.freeciv.mp.gtk4.yml \ flatpak/org.freeciv.qt.yml \ flatpak/org.freeciv.sdl2.yml \ platforms/macos/homebrew-appbundle.sh \ diff --git a/flatpak/build_flatpak.sh b/flatpak/build_flatpak.sh index 10c5cace00..afaad19315 100755 --- a/flatpak/build_flatpak.sh +++ b/flatpak/build_flatpak.sh @@ -15,12 +15,14 @@ FCVER=$(../fc_version) if ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.gtk4.yml || ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.gtk322.yml || + ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.mp.gtk4.yml || ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.mp.gtk3.yml || ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.qt.yml || ! flatpak-builder --user --repo=repo --force-clean build org.freeciv.sdl2.yml || ! flatpak build-update-repo repo || ! flatpak build-bundle repo "freeciv-gtk4-${FCVER}.flatpak" org.freeciv.gtk4 || ! flatpak build-bundle repo "freeciv-gtk3.22-${FCVER}.flatpak" org.freeciv.gtk322 || + ! flatpak build-bundle repo "freeciv-mp-gtk4-${FCVER}.flatpak" org.freeciv.mp.gtk4 || ! flatpak build-bundle repo "freeciv-mp-gtk3-${FCVER}.flatpak" org.freeciv.mp.gtk3 || ! flatpak build-bundle repo "freeciv-qt-${FCVER}.flatpak" org.freeciv.qt || ! flatpak build-bundle repo "freeciv-sdl2-${FCVER}.flatpak" org.freeciv.sdl2 diff --git a/flatpak/org.freeciv.mp.gtk4.yml b/flatpak/org.freeciv.mp.gtk4.yml new file mode 100644 index 0000000000..ba25578044 --- /dev/null +++ b/flatpak/org.freeciv.mp.gtk4.yml @@ -0,0 +1,23 @@ +app-id: org.freeciv.mp.gtk4 +runtime: org.gnome.Platform +runtime-version: '42' +sdk: org.gnome.Sdk +command: freeciv-mp-gtk4 +rename-icon: freeciv-modpack +modules: + - name: freeciv-mp-gtk4 + buildsystem: simple + build-commands: + # On git clone, regenerate configure with autogen.sh + - if test -f ./.git && test -x ./autogen.sh ; then ./autogen.sh --no-configure-run ; fi + - mkdir build + - cd build && ../configure --prefix=/app --enable-fcmp=gtk4 --disable-client --disable-server --disable-freeciv-manual && make -j$(nproc) && make install + sources: + - type: dir + path: .. +finish-args: + - --socket=wayland + - --socket=fallback-x11 + - --share=ipc + - --share=network + - --filesystem=~/.freeciv:create -- 2.39.1