# Contributor: Bart Ribbers # Contributor: knuxify # Maintainer: knuxify pkgname=prismlauncher pkgver=7.2 pkgrel=0 pkgdesc="A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once" url="https://prismlauncher.org/" # blocked on riscv64 by openjdk # ppc64le: openjdk17-jre arch="all !ppc64le !riscv64" license="GPL-3.0-only AND Apache-2.0" depends=" openjdk8-jre qt6-qtimageformats qt6-qtsvg " makedepends=" cmake extra-cmake-modules qt6-qtbase-dev qt6-qt5compat-dev qt6-qtimageformats-dev scdoc openjdk8 quazip-dev samurai " case "$CARCH" in x86) ;; armv7|armhf) makedepends="$makedepends clang" ;; # fails to build with gcc, see note in build() *) depends="$depends openjdk17-jre" ;; esac install="$pkgname.post-install" source="https://github.com/PrismLauncher/PrismLauncher/releases/download/$pkgver/PrismLauncher-$pkgver.tar.gz" subpackages="$pkgname-doc" builddir="$srcdir/PrismLauncher-$pkgver" prepare() { default_prepare rm -rf libraries/quazip } build() { case "$CARCH" in armv7|armhf) # building with gcc fails, see https://github.com/PrismLauncher/PrismLauncher/issues/128 export CC=clang export CXX=clang++ ;; esac JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk \ cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLauncher_QT_VERSION_MAJOR=6 \ -DLauncher_BUILD_PLATFORM=alpinelinux cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" f809434ff57b8bb10368c5a2e1c82f0082816fc8d45d8431f723fce1ea6b942e62fbb75be792c8ead8fc0828178330237ed0a1d2a24196e3afadc2678ba170ed PrismLauncher-7.2.tar.gz "