forked from flathub/net.worldofpadman.WoP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnet.worldofpadman.WoP.yaml
62 lines (62 loc) · 2.11 KB
/
net.worldofpadman.WoP.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
app-id: net.worldofpadman.WoP
tags:
- proprietary
runtime: org.freedesktop.Platform
runtime-version: 24.08
sdk: org.freedesktop.Sdk
command: worldofpadman
finish-args:
# Controller support
- --device=all
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --persist=.padman
cleanup:
- /man
- /include
- /share/man
- /doc
- '*.a'
- '*.la'
modules:
- name: wop
buildsystem: autotools
no-autogen: true
no-make-install: true
make-args:
- BUILD_RENDERER_VULKAN=0
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
- type: file
path: net.worldofpadman.WoP.desktop
- type: file
path: net.worldofpadman.WoP.svg
- type: file
path: net.worldofpadman.WoP.metainfo.xml
- type: script
commands:
- exec /app/share/games/wop/wop.* "$@"
dest-filename: worldofpadman
- type: shell
commands:
- rm *.x86_64 *.exe *.so *.dylib
post-install:
- mkdir -p /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
- install -Dm644 net.worldofpadman.WoP.svg /app/share/icons/hicolor/scalable/apps/net.worldofpadman.WoP.svg
- install -Dm644 net.worldofpadman.WoP.metainfo.xml /app/share/metainfo/net.worldofpadman.WoP.metainfo.xml