-
Notifications
You must be signed in to change notification settings - Fork 0
/
net.sourceforge.uhexen2.uhexen2.yml
executable file
·66 lines (62 loc) · 2.32 KB
/
net.sourceforge.uhexen2.uhexen2.yml
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
63
64
65
66
app-id: net.sourceforge.uhexen2.uhexen2
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: uhexen2.sh
finish-args:
# hardware 3D
- --device=dri
# X11 + XShm access
- --share=ipc
- --socket=x11
# Audio
- --socket=pulseaudio
# Data path
- --persist=.hexen2
cleanup:
- /include
- /lib/*.a
- /lib/*.la
- /lib/pkgconfig
modules:
- shared-modules/SDL2/SDL2-no-libdecor.json
- shared-modules/SDL/sdl12-compat.json
- shared-modules/libmad/libmad.json
- name: uhexen2
sources:
- type: git
url: https://github.com/sezero/uhexen2
tag: uhexen2-1.5.9
commit: 4ef664bc41e3998b0d2a55ff1166dadf34c936be
x-checker-data:
type: git
tag-pattern: ^uhexen2-(.*)$
- type: file
path: net.sourceforge.uhexen2.uhexen2.desktop
- type: file
path: net.sourceforge.uhexen2.uhexen2.appdata.xml
- type: file
path: net.sourceforge.uhexen2.uhexen2.svg
- type: script
dest-filename: uhexen2.sh
commands:
# Verify game data is present
- ls ~/.hexen2/data1/pak0.pak || zenity --error --text "Hexen 2 game data pak0.pak
and pak1.pak must be added to:\n~/.var/app/net.sourceforge.uhexen2.uhexen2/.hexen2/data1/"
--ok-label "Close" --width=400
# launch the game
- /app/bin/glhexen2 "$@" -basedir ~/.var/app/net.sourceforge.uhexen2.uhexen2/.hexen2
buildsystem: simple
build-commands:
# Uncomment this to apply the SDL2 patch
# - git apply patches/sdl2.patch
- cd engine/hexen2 && make glh2 && make -C server
- cd engine/hexenworld && make -C client glhw && make -C server
- cd hw_utils/hwmaster && make
# Install the executables we've built
- install -Dm 744 uhexen2.sh -t /app/bin
- install -D -m755 -t /app/bin/ ./engine/hexen2/glhexen2 ./engine/hexen2/server/h2ded ./engine/hexenworld/client/glhwcl ./engine/hexenworld/server/hwsv hw_utils/hwmaster/hwmaster
# Install metadata and launcher files
- install -D -m755 -t /app/share/icons/hicolor/scalable/apps/ net.sourceforge.uhexen2.uhexen2.svg
- install -D -m755 -t /app/share/applications/ net.sourceforge.uhexen2.uhexen2.desktop
- install -D -m755 -t /app/share/metainfo/ net.sourceforge.uhexen2.uhexen2.appdata.xml