From 813a7090e70e0b46301fc1e3d28db74fc75e7db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 13 Aug 2023 16:43:48 +0200 Subject: [PATCH] Build properly from source. --- net.worldofpadman.WoP.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/net.worldofpadman.WoP.yaml b/net.worldofpadman.WoP.yaml index 0be8acb..ad0b72f 100644 --- a/net.worldofpadman.WoP.yaml +++ b/net.worldofpadman.WoP.yaml @@ -23,12 +23,21 @@ cleanup: - '*.la' modules: - name: wop - buildsystem: simple + buildsystem: autotools + no-autogen: true + no-make-install: true sources: - type: archive # Community url, however SHA256 checksum matches the official archive from Mod DB url: http://www.zock-server.de/downloads/WoP_1.6.2/wop-1.6.2-full-unified.zip sha256: 526d5936225b37fa8a5b94a7c02dc600126d1f2fb1155fd0e372c36075344335 + - type: git + url: https://github.com/PadWorld-Entertainment/worldofpadman.git + tag: v1.6.2 + commit: 523c835eb0738d0da22b0e078a587108e8c10e30 + x-checker-data: + type: git + tag-pattern: ^(v[\d.]+)$ - type: file path: net.worldofpadman.WoP.desktop - type: file @@ -37,12 +46,16 @@ modules: path: net.worldofpadman.WoP.metainfo.xml - type: script commands: - - exec /app/share/games/wop/wop.x86_64 "$@" + - exec /app/share/games/wop/wop.* "$@" dest-filename: worldofpadman - build-commands: + - type: shell + commands: + - rm *.x86_64 *.exe *.so *.dylib + post-install: - mkdir -p /app/share/games/wop - - cp wop-linux.x86_64 /app/share/games/wop/wop.x86_64 - - cp renderer_*_x86_64.so /app/share/games/wop/ + - install -m 0755 build/release-linux-*/wop.* /app/share/games/wop/ + - install -m 0755 build/release-linux-*/renderer_opengl1_*.so /app/share/games/wop/ + - install -m 0755 build/release-linux-*/renderer_opengl2_*.so /app/share/games/wop/ - cp -r wop /app/share/games/wop/wop - install -Dm755 worldofpadman /app/bin/worldofpadman - install -Dm644 net.worldofpadman.WoP.desktop /app/share/applications/net.worldofpadman.WoP.desktop