blob: a249986e2ecb06068b71898058e56c35d87fe8ea (
plain)
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
|
# Maintainer: HurricanePootis <hurricanepootis@protonmail.com
# Contributor: Ersei <contact at ersei dot net>
# Contributor: Paul <paul@mrarm.io>
pkgname=mcpelauncher-ui
pkgver=1.2.0
pkgrel=5
pkgdesc="Minecraft: PE Linux launcher UI"
arch=('x86_64')
url="https://github.com/minecraft-linux/mcpelauncher-ui-manifest"
license=('GPL-3.0-only' 'MIT')
makedepends=('git' 'cmake' 'ninja' 'qt5-tools' 'clang')
depends=('qt5-base' 'qt5-webengine' 'qt5-declarative' 'qt5-svg' 'libzip' 'protobuf' 'mcpelauncher-linux' 'zlib' 'curl' 'glibc' 'qt5-webchannel' 'gcc-libs' 'openssl'
'hicolor-icon-theme' 'libxinerama')
optdepends=('mcpelauncher-msa-ui-qt: Microsoft authentication for version before 1.16.1X')
_commit=ec6abda1b10ffba8eaa6f4813d7564ad46521e7b # qt5 branch until qt6 is fixed
source=(
"git+https://github.com/minecraft-linux/mcpelauncher-ui-manifest.git#commit=$_commit"
'git+https://github.com/MCMrARM/axml-parser.git'
'git+https://github.com/minecraft-linux/file-util.git'
'google-play-api::git+https://github.com/minecraft-linux/Google-Play-API.git'
'git+https://github.com/minecraft-linux/mcpelauncher-apkinfo.git'
'git+https://github.com/minecraft-linux/mcpelauncher-extract.git'
'git+https://github.com/minecraft-linux/mcpelauncher-common.git'
'git+https://github.com/minecraft-linux/mcpelauncher-ui-qt.git'
'git+https://github.com/minecraft-linux/playdl-signin-ui-qt.git'
)
sha256sums=('9ea27cf8dd82167d17d956b034dd7e9e3ade0cada585d014f14587b106691748'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare() {
cd "$srcdir/$pkgname-manifest"
git submodule init
for submodule in {file-util,axml-parser,mcpelauncher-apkinfo,mcpelauncher-extract,google-play-api,playdl-signin-ui-qt,mcpelauncher-ui-qt,mcpelauncher-common};
do
git config submodule.$submodule.url "$srcdir/$submodule"
done
git -c protocol.file.allow=always submodule update
cd "$srcdir/$pkgname-manifest/google-play-api"
}
build() {
cd "$srcdir"
cmake -B build -S "$pkgname-manifest" \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-Wno-dev
cmake --build build
}
package() {
cd "$srcdir"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$srcdir/$pkgname-qt/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Fix StartUPWMClass to get icon working on wayland
echo "StartUpWMClass=io.mrarm.mcpelauncher-ui-qt" >> "$pkgdir/usr/share/applications/mcpelauncher-ui-qt.desktop"
install -dm755 "$pkgdir/usr/share/icons/hicolor/scalable/apps"
mv "$pkgdir/usr/share/pixmaps/mcpelauncher-ui-qt.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/io.mrarm.mcpelauncher-ui-qt.svg"
rm -rf "$pkgdir/usr/share/pixmaps"
mv "$pkgdir/usr/share/applications/mcpelauncher-ui-qt.desktop" "$pkgdir/usr/share/applications/io.mrarm.mcpelauncher-ui-qt.desktop"
sed -i 's/Icon=mcpelauncher-ui-qt/Icon=io.mrarm.mcpelauncher-ui-qt/g' "$pkgdir/usr/share/applications/io.mrarm.mcpelauncher-ui-qt.desktop"
}
|