# Maintainer: Sefa Eyeoglu # Maintainer: txtsd # Maintainer: seth # Contributor: Elijah Gregg # Contributor: Lenny McLennington # Contributor: Miko # Contributor: Cheru Berhanu _pkgname=prismlauncher pkgname=${_pkgname}-git pkgver=8.0.r238.gdeed4957 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' 'cmark' 'tomlplusplus') provides=('prismlauncher') conflicts=('prismlauncher') 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' ) options=(debug) source=("git+https://github.com/PrismLauncher/PrismLauncher.git" "git+https://github.com/PrismLauncher/libnbtplusplus.git") sha256sums=('SKIP' 'SKIP') 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 -DCMAKE_BUILD_TYPE= \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DLauncher_APP_BINARY_NAME="${_pkgname}" \ -DLauncher_QT_VERSION_MAJOR="6" \ -Bbuild -SPrismLauncher cmake --build build } check() { cd "build" ctest . } package() { cd "build" DESTDIR="${pkgdir}" cmake --install . }