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
129
130
131
132
133
134
135
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com
# Contributor: Ersei <contact at ersei dot net>
# Contributer: Paul <paul@mrarm.io>
pkgname=mcpelauncher-linux
pkgver=1.8.7
pkgrel=1
pkgdesc="Minecraft: Pocket Edition launcher for Linux"
arch=('x86_64')
url="https://github.com/minecraft-linux/mcpelauncher-manifest"
license=('GPL-3.0-only')
makedepends=('git' 'cmake' 'ninja' 'clang' 'wayland-protocols' 'lld')
depends=('zlib' 'sdl3' 'qt6-base' 'qt6-declarative' 'qt6-webengine' 'openssl' 'libstdc++' 'libgcc' 'glibc')
optdepends=('mcpelauncher-ui: GUI for Launcher')
provides=('mcpelauncher-client')
source=(
"git+https://github.com/minecraft-linux/mcpelauncher-manifest.git#tag=v${pkgver}-qt6"
'git+https://github.com/minecraft-linux/android-support-headers.git'
'git+https://github.com/minecraft-linux/arg-parser.git'
'git+https://github.com/minecraft-linux/base64.git'
'git+https://github.com/minecraft-linux/cll-telemetry.git'
'git+https://github.com/minecraft-linux/daemon-utils.git'
'git+https://github.com/minecraft-linux/eglut.git'
'git+https://github.com/minecraft-linux/epoll-shim.git'
'git+https://github.com/minecraft-linux/file-picker.git'
'git+https://github.com/minecraft-linux/file-util.git'
'git+https://github.com/minecraft-linux/game-window.git'
'git+https://github.com/ocornut/imgui.git'
'git+https://github.com/minecraft-linux/libc-shim.git'
'git+https://github.com/ChristopherHX/libjnivm.git'
'git+https://github.com/MCMrARM/linux-gamepad.git'
'git+https://github.com/minecraft-linux/logger.git'
'git+https://github.com/minecraft-linux/mcpelauncher-client.git'
'git+https://github.com/minecraft-linux/mcpelauncher-common.git'
'git+https://github.com/minecraft-linux/mcpelauncher-core.git'
'git+https://github.com/minecraft-linux/mcpelauncher-errorwindow.git'
'git+https://github.com/minecraft-linux/mcpelauncher-linker.git'
'git+https://github.com/minecraft-linux/mcpelauncher-linux-bin.git'
'git+https://github.com/minecraft-linux/mcpelauncher-mac-bin.git'
'git+https://github.com/minecraft-linux/mcpelauncher-webview.git'
'git+https://github.com/minecraft-linux/minecraft-imported-symbols.git'
'git+https://github.com/minecraft-linux/msa-daemon-client.git'
'git+https://github.com/minecraft-linux/osx-elf-header.git'
'git+https://github.com/minecraft-linux/properties-parser.git'
'git+https://github.com/MCMrARM/simple-ipc.git'
'git+https://github.com/minecraft-linux/android_bionic.git'
'sdl3::git+https://github.com/libsdl-org/SDL.git'
'git+https://github.com/MCMrARM/axml-parser.git'
#mcpelauncher-linker submodules
'git+https://github.com/minecraft-linux/mcpelauncher-apkinfo.git'
'git+https://github.com/minecraft-linux/android_core'
)
sha256sums=('a4878ec85adb7ae75fb008ceeb160798d47e40510d2910538d13a16eaf8c4d4a'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "$srcdir/mcpelauncher-manifest"
git submodule init
for _submodule in {android-support-headers,arg-parser,base64,cll-telemetry,daemon-utils,eglut,epoll-shim,file-picker,file-util,game-window,libc-shim,libjnivm,linux-gamepad,logger,mcpelauncher-client,mcpelauncher-common,mcpelauncher-core,mcpelauncher-errorwindow,mcpelauncher-linker,mcpelauncher-linux-bin,mcpelauncher-mac-bin,mcpelauncher-webview,minecraft-imported-symbols,msa-daemon-client,osx-elf-header,properties-parser,simple-ipc,sdl3,imgui,axml-parser,mcpelauncher-apkinfo}
do
git config submodule.${_submodule}.url "$srcdir/${_submodule}"
done
git -c protocol.file.allow=always submodule update
pushd mcpelauncher-linker
git submodule init
git config submodule.bionic.url "$srcdir/android_bionic"
git config submodule.core.url "$srcdir/android_core"
git -c protocol.file.allow=always submodule update
popd
}
build() {
CXXFLAGS="$(echo $CXXFLAGS | sed 's/-Wp,-D_FORTIFY_SOURCE=3//g') -DNDEBUG -flto=thin"
CFLAGS+=" -flto=thin"
LDFLAGS+=" -fuse-ld=lld"
_args=(
-S mcpelauncher-manifest
-G Ninja
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=None
-DENABLE_DEV_PATHS=OFF
-DGAMEWINDOW_SYSTEM=SDL3
-DSDL3_VENDORED=OFF
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
-Wno-dev
)
cmake -B build "${_args[@]}"
cmake --build build
}
package() {
cd "$srcdir"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 mcpelauncher-manifest/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 mcpelauncher-manifest/msa-daemon-client/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.MIT"
install -Dm644 mcpelauncher-manifest/mcpelauncher-linux-bin/FMod\ License.txt "$pkgdir/usr/share/licenses/$pkgname/fmod_license.txt"
install -Dm644 mcpelauncher-manifest/eglut/LICENSE "$pkgdir/usr/share/licenses/$pkgname/eglut_license.txt"
}
|