# Maintainer: Sefa Eyeoglu # Maintainer: txtsd # Maintainer: seth # Contributor: Lenny McLennington # Contributor: Elijah Gregg # Contributor: Miko # Contributor: Cheru Berhanu # Contributor: dada513 pkgname=prismlauncher pkgver=7.2 pkgrel=2 pkgdesc="Minecraft launcher with ability to manage multiple instances." arch=('i686' 'x86_64' 'aarch64') url="https://prismlauncher.org" license=('GPL3') depends=('java-runtime=17' 'libgl' 'qt6-base' 'qt6-5compat' 'qt6-svg' 'qt6-imageformats' 'zlib' 'hicolor-icon-theme' 'quazip-qt6' 'tomlplusplus' 'cmark') makedepends=('cmake' 'extra-cmake-modules' 'git' 'jdk17-openjdk' 'scdoc' 'ghc-filesystem' 'gamemode') 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') source=("https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/PrismLauncher-${pkgver}.tar.gz" "0001-fix-Fix-building-prismlauncher-7.2-on-Qt-6.6.0.patch") sha256sums=('5733b55c4532286813a6fb7de2f3a38e6f6db743a251919c8b646d32a84514b4' '407162bb56d08c7f825632ce486bde8ab03dbceac0a0669ea751f475a1947306') prepare() { cd "PrismLauncher-${pkgver}" patch -Np1 -i "${srcdir}/0001-fix-Fix-building-prismlauncher-7.2-on-Qt-6.6.0.patch" } build() { cd "PrismLauncher-${pkgver}" export PATH="/usr/lib/jvm/java-17-openjdk/bin:$PATH" cmake -DCMAKE_BUILD_TYPE= \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DLauncher_BUILD_PLATFORM="archlinux" \ -DLauncher_QT_VERSION_MAJOR="6" \ -Bbuild -S. cmake --build build } check() { cd "PrismLauncher-${pkgver}/build" ctest . } package() { cd "PrismLauncher-${pkgver}/build" DESTDIR="${pkgdir}" cmake --install . }