blob: f93c7e84aa66fb91128ad691010a94d90357f777 (
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
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
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Maintainer: seth <getchoo at tuta dot io>
# Contributor: Elijah Gregg <lovetocode999 at tilde dot team>
# Contributor: Lenny McLennington <lennymclennington@protonmail.com>
# Contributor: Miko <mikoxyzzz@gmail.com>
# Contributor: Cheru Berhanu <aur attt cheru doot dev>
pkgname=prismlauncher-git
_pkgname=${pkgname%-git}
pkgver=8.0.r1447.g1d9508c26
pkgrel=1
pkgdesc='Minecraft launcher with ability to manage multiple instances'
arch=(i686 x86_64 aarch64)
url='https://prismlauncher.org'
license=('GPL-3.0-only AND LGPL-3.0-or-later AND LGPL-2.0-or-later AND Apache-2.0 AND MIT AND LicenseRef-Batch AND OFL-1.1')
depends=(
cmark
gcc-libs
glibc
hicolor-icon-theme
java-runtime=17
libgl
qt6-5compat
qt6-base
qt6-imageformats
qt6-networkauth
qt6-svg
quazip-qt6
tomlplusplus
zlib
)
provides=('prismlauncher')
conflicts=('prismlauncher')
makedepends=(
cmake
extra-cmake-modules
gamemode
ghc-filesystem
git
jdk17-openjdk
scdoc
)
optdepends=(
'glfw: to use system GLFW libraries'
'openal: to use system OpenAL libraries'
'visualvm: Profiling support'
'xorg-xrandr: for older minecraft versions'
'java-runtime=8: for older minecraft versions'
'flite: minecraft voice narration'
)
source=(
'git+https://github.com/PrismLauncher/PrismLauncher.git'
'git+https://github.com/PrismLauncher/libnbtplusplus.git'
{lionshead,batch,mdi}.license
)
sha256sums=('SKIP'
'SKIP'
'2ee3ba8d96e9882150783b6444651ea4a65d779532ecac8646f2ecd3a48c2770'
'009e25d32aab6dbae193aac4b82fa1a26cb07f288225b2906da425a0f219bc4c'
'32646946afc31ef5a4ce2cbb5a5a68a9f552c540a78ef23344c51c3efca58fa6')
pkgver() {
cd "PrismLauncher"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "PrismLauncher"
git submodule init
git config submodule.libraries/cmark.active false
git config submodule.libraries/extra-cmake-modules.active false
git config submodule.libraries/filesystem.active false
git config submodule.libraries/libnbtplusplus.url "${srcdir}/libnbtplusplus"
git config submodule.libraries/quazip.active false
git config submodule.libraries/tomlplusplus.active false
git config submodule.libraries/zlib.active false
git -c protocol.file.allow=always submodule update
}
build() {
export PATH="/usr/lib/jvm/java-17-openjdk/bin:$PATH"
cmake -S PrismLauncher -B build \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DLauncher_BUILD_PLATFORM="archlinux" \
-DLauncher_APP_BINARY_NAME="${_pkgname}" \
-DLauncher_QT_VERSION_MAJOR="6" \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="${pkgdir}" cmake --install build
# licenses
install -Dm644 lionshead.license -t "$pkgdir"/usr/share/licenses/$pkgname/
install -Dm644 batch.license -t "$pkgdir"/usr/share/licenses/$pkgname/
install -Dm644 mdi.license -t "$pkgdir"/usr/share/licenses/$pkgname/
}
|