35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'PrismLauncher'
|
|
pkgname=PrismLauncher
|
|
version=9.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DLauncher_BUILD_PLATFORM=Void"
|
|
hostmakedepends="extra-cmake-modules openjdk17 pkg-config qt6-tools qt6-base scdoc"
|
|
makedepends="qt6-base-devel qt6-qt5compat-devel zlib-devel quazip-qt6-devel qt6-networkauth-devel"
|
|
depends="virtual?java-runtime qt6-svg qt6-imageformats qt6-plugin-tls-openssl"
|
|
short_desc="Custom launcher for Minecraft"
|
|
maintainer="Philipp David <pd@3b.pm>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://prismlauncher.org/"
|
|
distfiles="https://github.com/PrismLauncher/PrismLauncher/releases/download/${version}/PrismLauncher-${version}.tar.gz"
|
|
checksum=0aac56ec6b039e28f0605e7d86ebf602ee28dd9e4c7a16915ca974104954e832
|
|
|
|
if [ -z "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DBUILD_TESTING=0"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# XXX: this could be fixed by switching to clang, but it seems to produce
|
|
# non-PIE executables despite -fPIE being in the C(XX)FLAGS
|
|
# There's also some effort needed to get it working on cross
|
|
armv*) broken="https://github.com/PrismLauncher/PrismLauncher/issues/128" ;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
. /etc/profile.d/jdk.sh
|
|
}
|
|
|
|
post_install() {
|
|
vdoc ${FILESDIR}/README.voidlinux
|
|
}
|