PrismLauncher: update to 5.0, rename from PolyMC

This commit is contained in:
classabbyamp 2022-10-19 13:50:33 -04:00 committed by classabbyamp
parent 6d0db50706
commit 3f89aa4443
6 changed files with 55 additions and 37 deletions

1
srcpkgs/PolyMC Symbolic link
View File

@ -0,0 +1 @@
PrismLauncher

View File

@ -1,35 +0,0 @@
# Template file for 'PolyMC'
pkgname=PolyMC
version=1.4.2
revision=2
build_style=cmake
configure_args="-DLauncher_BUILD_PLATFORM=Void
-DLauncher_VERSION_BUILD=${revision} -DLauncher_META_URL=https://meta.scrumplex.rocks/v1/"
hostmakedepends="extra-cmake-modules openjdk8 pkg-config qt5-host-tools
qt5-qmake scdoc"
makedepends="qt5-devel"
depends="virtual?java-runtime qt5-svg qt5-imageformats xrandr"
short_desc="Custom launcher for Minecraft"
maintainer="Philipp David <pd@3b.pm>"
license="GPL-3.0-only"
homepage="https://polymc.org/"
distfiles="https://github.com/PolyMC/PolyMC/releases/download/${version}/PolyMC-${version}.tar.gz"
checksum=a66f25e0389815d2419a5b3aa1b85a390f14bbf3997c55c7da1ce4507b5aa511
if [ -z "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=0"
fi
case "$XBPS_TARGET_MACHINE" in
armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";;
esac
post_patch() {
vsed -i buildconfig/BuildConfig.cpp.in \
-e 's/+build\./_/'
rm -rf .git
}
post_install() {
vdoc ${FILESDIR}/README.voidlinux
}

View File

@ -1,2 +0,0 @@
site=https://github.com/PolyMC/PolyMC/tags
pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'

View File

@ -4,3 +4,6 @@ Void-specific instructions:
You may not have the correct version of java installed for running specific
versions of Minecraft. For Minecraft version 1.17 and up install openjdk17-jre
and for older ones openjdk8-jre.
If you get an error message that includes "org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes",
you may need to install xrandr.

View File

@ -0,0 +1,49 @@
# Template file for 'PrismLauncher'
pkgname=PrismLauncher
version=5.0
revision=1
build_style=cmake
configure_args="-DLauncher_BUILD_PLATFORM=Void"
hostmakedepends="extra-cmake-modules openjdk8 pkg-config qt5-host-tools
qt5-qmake scdoc"
makedepends="qt5-devel"
depends="virtual?java-runtime qt5-svg qt5-imageformats"
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=27c2c7e0c9aaa3450b7449683cfd2a9a941b7118ab83947de09285438e03c495
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
post_extract() {
rm -rf .git
}
pre_configure() {
local _date
if [ "$SOURCE_DATE_EPOCH" ]; then
_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")"
configure_args+=" -DLauncher_BUILD_TIMESTAMP=${_date}"
fi
}
post_install() {
vdoc ${FILESDIR}/README.voidlinux
}
PolyMC_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
build_style=meta
}

View File

@ -0,0 +1,2 @@
site=https://github.com/PrismLauncher/PrismLauncher/tags
pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'