prismlauncher/8.3-3: update optdepends, fix debug package unusable

This commit is contained in:
Puqns67 2024-06-16 18:17:35 +08:00
parent ce25f37de7
commit 4674e119d6
Signed by: Puqns67
GPG Key ID: 9669DF042554F536
2 changed files with 20 additions and 16 deletions

View File

@ -1,7 +1,7 @@
pkgbase = prismlauncher pkgbase = prismlauncher
pkgdesc = Minecraft launcher with ability to manage multiple instances. pkgdesc = Minecraft launcher with ability to manage multiple instances.
pkgver = 8.3 pkgver = 8.3
pkgrel = 2 pkgrel = 3
url = https://prismlauncher.org/ url = https://prismlauncher.org/
arch = x86_64 arch = x86_64
arch = aarch64 arch = aarch64
@ -24,15 +24,17 @@ pkgbase = prismlauncher
depends = quazip-qt6 depends = quazip-qt6
depends = tomlplusplus depends = tomlplusplus
depends = zlib depends = zlib
optdepends = flite: for Minecraft text2speech support
optdepends = glfw: to use system GLFW libraries optdepends = glfw: to use system GLFW libraries
optdepends = openal: to use system OpenAL libraries optdepends = openal: to use system OpenAL libraries
optdepends = visualvm: Profiling support optdepends = visualvm: Profiling support
optdepends = mangohud: run minecraft with mangohud optdepends = mangohud: run Minecraft with mangohud
optdepends = gamemode: run minecraft with gamemode optdepends = gamemode: run Minecraft with gamemode
optdepends = xorg-xrandr: for older minecraft versions (<=1.12.2) optdepends = xorg-xrandr: for older Minecraft (<=1.12.2)
optdepends = java-runtime=8: for older minecraft versions optdepends = java-runtime=8: for older Minecraft (<1.18 Pre-release 2)
optdepends = java-runtime=17: for minecraft 1.18.0+ (>=1.18 Pre-release 2) optdepends = java-runtime=17: for Minecraft 1.18.0+ (>=1.18 Pre-release 2)
optdepends = java-runtime=21: for minecraft 1.20.5+ (>=24w14a) optdepends = java-runtime=21: for Minecraft 1.20.5+ (>=24w14a)
optdepends = qt6-wayland: for Wayland support
source = prismlauncher-8.3.tar.gz::https://github.com/PrismLauncher/PrismLauncher/releases/download/8.3/PrismLauncher-8.3.tar.gz source = prismlauncher-8.3.tar.gz::https://github.com/PrismLauncher/PrismLauncher/releases/download/8.3/PrismLauncher-8.3.tar.gz
b2sums = 47244a8ec09ad12bf902660d114835ef0c142dd7cf740e8fe3771c08dd39ff5ab5f9e043d17c03dce1986c0a37b421868d4d3d939b35bdb9c237b2f72925be79 b2sums = 47244a8ec09ad12bf902660d114835ef0c142dd7cf740e8fe3771c08dd39ff5ab5f9e043d17c03dce1986c0a37b421868d4d3d939b35bdb9c237b2f72925be79

View File

@ -4,22 +4,24 @@ _pkgname='PrismLauncher'
pkgname='prismlauncher' pkgname='prismlauncher'
pkgver=8.3 pkgver=8.3
pkgrel=2 pkgrel=3
pkgdesc='Minecraft launcher with ability to manage multiple instances.' pkgdesc='Minecraft launcher with ability to manage multiple instances.'
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
url='https://prismlauncher.org/' url='https://prismlauncher.org/'
license=('GPL-3.0-only') license=('GPL-3.0-only')
depends=('bzip2' 'cmark' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libglvnd' 'qt6-5compat' 'qt6-base' 'quazip-qt6' 'tomlplusplus' 'zlib') depends=('bzip2' 'cmark' 'gcc-libs' 'glibc' 'hicolor-icon-theme' 'libglvnd' 'qt6-5compat' 'qt6-base' 'quazip-qt6' 'tomlplusplus' 'zlib')
makedepends=('cmake' 'extra-cmake-modules' 'gamemode' 'ghc-filesystem' 'java-environment=17' 'ninja' 'scdoc') makedepends=('cmake' 'extra-cmake-modules' 'gamemode' 'ghc-filesystem' 'java-environment=17' 'ninja' 'scdoc')
optdepends=('glfw: to use system GLFW libraries' optdepends=('flite: for Minecraft text2speech support'
'glfw: to use system GLFW libraries'
'openal: to use system OpenAL libraries' 'openal: to use system OpenAL libraries'
'visualvm: Profiling support' 'visualvm: Profiling support'
'mangohud: run minecraft with mangohud' 'mangohud: run Minecraft with mangohud'
'gamemode: run minecraft with gamemode' 'gamemode: run Minecraft with gamemode'
'xorg-xrandr: for older minecraft versions (<=1.12.2)' 'xorg-xrandr: for older Minecraft (<=1.12.2)'
'java-runtime=8: for older minecraft versions' 'java-runtime=8: for older Minecraft (<1.18 Pre-release 2)'
'java-runtime=17: for minecraft 1.18.0+ (>=1.18 Pre-release 2)' 'java-runtime=17: for Minecraft 1.18.0+ (>=1.18 Pre-release 2)'
'java-runtime=21: for minecraft 1.20.5+ (>=24w14a)') 'java-runtime=21: for Minecraft 1.20.5+ (>=24w14a)'
'qt6-wayland: for Wayland support')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz") source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
@ -28,7 +30,7 @@ b2sums=('47244a8ec09ad12bf902660d114835ef0c142dd7cf740e8fe3771c08dd39ff5ab5f9e04
prepare() { prepare() {
cmake \ cmake \
-B "${srcdir}/build" \ -B "${srcdir}/build" \
-D CMAKE_BUILD_TYPE=Release \ -D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D CMAKE_INSTALL_PREFIX='/usr' \ -D CMAKE_INSTALL_PREFIX='/usr' \
-D BUILD_TESTING=OFF \ -D BUILD_TESTING=OFF \
-D ENABLE_LTO=ON \ -D ENABLE_LTO=ON \