-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcom.thebrokenrail.MCPIReborn.yml
82 lines (74 loc) · 2.06 KB
/
com.thebrokenrail.MCPIReborn.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
app-id: com.thebrokenrail.MCPIReborn
# No Separate Locales
separate-locales: false
# MCPI Itself Is Proprietary
tags:
- proprietary
# Runtime/SDK
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
# Startup Command
command: minecraft-pi-reborn-client
# Permissions
finish-args:
- --persist=.minecraft-pi
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --share=network
- --device=dri
- --socket=pulseaudio
- --allow=multiarch
# MCPI-Reborn Git
x-mcpi-reborn-git: &mcpi-reborn-git
type: git
url: https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn.git
tag: flatpak
disable-shallow-clone: true
# Build
modules:
# MCPI-Reborn
- name: minecraft-pi-reborn
buildsystem: simple
build-commands:
- ./scripts/setup.sh client "${MCPI_ARCH}" -DMCPI_IS_FLATPAK_BUILD=ON -DMCPI_OPEN_SOURCE_ONLY=ON -DMCPI_APP_ID=com.thebrokenrail.MCPIReborn
- DESTDIR= ./scripts/build.sh client "${MCPI_ARCH}"
build-options:
env:
# The Runtime Automatically Includes An x86_64-Only Flag, So Reset Flags
CFLAGS: ''
CXXFLAGS: ''
# Target Architecture
arch:
x86_64:
env:
MCPI_ARCH: 'amd64'
aarch64:
env:
MCPI_ARCH: 'arm64'
sources:
- *mcpi-reborn-git
# Download MCPI Separately At Installation-Time
- name: minecraft-pi
buildsystem: simple
build-commands:
- install -Dm755 apply_extra /app/bin/apply_extra
# Allow Starting MCPI
- ln -s ../../extra/minecraft-pi /app/lib/minecraft-pi-reborn-client/minecraft-pi
sources:
- type: extra-data
filename: mcpi.tar.gz
url: https://archive.org/download/MinecraftPi/minecraft-pi-0.1.1.tar.gz
sha256: e0d68918874cdd403de1fd399380ae2930913fcefdbf60a3fbfebb62e2cfacab
size: 1459472
- type: script
dest-filename: apply_extra
commands:
- tar -xf mcpi.tar.gz --strip-components 1
- rm -f mcpi.tar.gz
# Cleanup
cleanup:
- /include
- /lib/pkgconfig
- '*.a'