blob: f31d1ba721080a531d1864fd19d24623cdcb76d2 (
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
|
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Maintainer: seth <getchoo at tuta dot io>
pkgname=prismlauncher-qt5-bin
_pkgname="${pkgname%-bin}"
__pkgname="${_pkgname%-qt5}"
pkgver=9.1
pkgrel=2
pkgdesc='Minecraft launcher with ability to manage multiple instances'
arch=(x86_64)
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=(
bash
bzip2
dbus
fontconfig
freetype2
gcc-libs
glib2
glibc
hicolor-icon-theme
java-runtime=17
libxext
libgl
libx11
libxcb
libxkbcommon
libxkbcommon-x11
libxrender
qt5-base
qt5-imageformats
qt5-svg
wayland
zlib
)
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: support for Minecraft versions < 1.17'
'flite: minecraft voice narration'
)
provides=("${__pkgname}" "${_pkgname}")
conflicts=("${__pkgname}" "${_pkgname}")
source=(
"https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/PrismLauncher-Linux-Qt5-Portable-${pkgver}.tar.gz"
{lionshead,batch,mdi}.license
prismlauncher.tmpfiles
)
noextract=("PrismLauncher-Linux-Qt5-Portable-${pkgver}.tar.gz")
sha256sums=('a2128d90ea361c69ccdc211a58657363cdaaf219eb21d0ebc85c620b691eb892'
'2ee3ba8d96e9882150783b6444651ea4a65d779532ecac8646f2ecd3a48c2770'
'009e25d32aab6dbae193aac4b82fa1a26cb07f288225b2906da425a0f219bc4c'
'32646946afc31ef5a4ce2cbb5a5a68a9f552c540a78ef23344c51c3efca58fa6'
'ce690bced74a0f40751dae96f9597f762355ce4792b5743d903f9602a071e0c1')
package() {
install -dm777 "${pkgdir}/opt/${__pkgname}"
install -dm755 "${pkgdir}/usr/bin"
tar -C "${pkgdir}/opt/${__pkgname}" -xvf PrismLauncher-Linux-Qt5-Portable-${pkgver}.tar.gz
rm "${pkgdir}"/opt/${__pkgname}/bin/prismlauncher_updater
rm "${pkgdir}"/opt/${__pkgname}/manifest.txt
rm "${pkgdir}"/opt/${__pkgname}/portable.txt
ln -s "/opt/${__pkgname}/PrismLauncher" "${pkgdir}/usr/bin/prismlauncher"
# 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}
install -Dm644 prismlauncher.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/prismlauncher.conf
# Files are not owned by root
chown -R root:root "${pkgdir}/opt/${__pkgname}"
}
|