forked from MUME/MMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
128 lines (122 loc) · 3.87 KB
/
Copy pathsnapcraft.yaml
File metadata and controls
128 lines (122 loc) · 3.87 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: mmapper
adopt-info: mmapper
icon: src/resources/icons/mmapper-hi-release.svg
summary: MUME Mapper
license: GPL-2.0-or-later
description: |
MMapper is a graphical mapper for a MUD named MUME (Multi-Users in Middle
Earth). The game is traditionally played in a text-only mode, but MMapper tries
to represent the virtual world in a user-friendly graphical environment. It acts
as a proxy between a telnet client and a MUD server, being able to analyze game
data in real time and show the player's position on a map.
grade: stable
confinement: strict
base: core24
compression: lzo
platforms:
amd64:
arm64:
apps:
mmapper:
command: usr/bin/mmapper
common-id: org.mume.MMapper
desktop: usr/share/applications/org.mume.MMapper.desktop
extensions:
- kde-neon-6
plugs:
- audio-playback
- home
- network
- network-bind
- opengl
environment:
ALSA_CONFIG_PATH: "$SNAP/kf6/etc/asound.conf"
LD_LIBRARY_PATH: "$SNAP/kf6/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/ffmpeg-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib:$SNAP/lib/:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/blas:/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pulseaudio:${LD_LIBRARY_PATH}"
PATH: $SNAP/ffmpeg-platform/usr/bin:$SNAP/usr/bin:${PATH}
QT_MEDIA_BACKEND: "ffmpeg"
plugs:
ffmpeg-2404:
interface: content
target: ffmpeg-platform
default-provider: ffmpeg-2404
layout:
"/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib":
bind: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/alsa-lib"
"/usr/share/alsa":
bind: "$SNAP/usr/share/alsa"
"/etc/alsa/conf.d":
bind: "$SNAP/etc/alsa/conf.d"
parts:
mmapper:
parse-info:
- usr/share/metainfo/org.mume.MMapper.xml
build-snaps:
- kde-qt6-core24-sdk
- kf6-core24-sdk
- ffmpeg-2404-sdk
plugin: cmake
source: .
source-type: local
cmake-generator: Ninja
cmake-parameters:
- -DPACKAGE_TYPE=Snap
- -DCMAKE_INSTALL_PREFIX=/usr
- -DCMAKE_BUILD_TYPE=Release
- -DWITH_UPDATER=OFF
- -DWITH_WEBSOCKET=ON
- -DWITH_QTKEYCHAIN=ON
- -DUSE_MOLD=ON
- -DCMAKE_INSTALL_SYSCONFDIR=/etc
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var
- -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
- -DCMAKE_INSTALL_RUNSTATEDIR=/run
- -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
- --log-level=STATUS
- -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
build-packages:
- libglm-dev
- libssl-dev
- zlib1g-dev
- mold
stage-packages:
- libssl3t64
- zlib1g
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --always --long --exclude beta | sed 's/^v//')
override-build: |
craftctl default
sed -i 's|Icon=org.mume.MMapper|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/org.mume.MMapper.svg|g' $CRAFT_PART_INSTALL/usr/share/applications/org.mume.MMapper.desktop
prime:
- -usr/lib/*/cmake/*
- -usr/include/*
- -usr/share/ECM/*
- -usr/share/doc/*
- -usr/share/man/*
- -usr/bin/X11
- -usr/lib/gcc/$CRAFT_ARCH_TRIPLET_BUILD_FOR/6.0.0
- -usr/lib/aspell/*
- -usr/share/lintian
gpu-2404:
after: [mmapper]
source: https://github.com/canonical/gpu-snap.git
plugin: dump
override-prime: |
craftctl default
${CRAFT_PART_SRC}/bin/gpu-2404-cleanup mesa-2404
prime:
- bin/gpu-2404-wrapper
cleanup:
after:
- mmapper
plugin: nil
build-snaps:
- core24
- kf6-core24
override-prime: |
set -eux
for snap in "core24" "kf6-core24" "ffmpeg-2404"; do
cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
done