Skip to content

Commit

Permalink
Build properly from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Aug 13, 2023
1 parent cea0f54 commit a28492e
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions net.worldofpadman.WoP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a28492e

Please sign in to comment.