void-packages/srcpkgs/PolyMC/template

35 lines
967 B
Bash
Raw Normal View History

2022-01-10 11:32:22 +01:00
# Template file for 'PolyMC'
pkgname=PolyMC
2022-06-12 22:28:16 +02:00
version=1.3.2
revision=2
2022-01-10 11:32:22 +01:00
build_style=cmake
2022-04-18 13:30:56 +02:00
configure_args="-DLauncher_BUILD_PLATFORM=Void
2022-01-10 11:32:22 +01:00
-DLauncher_VERSION_BUILD=${revision}"
hostmakedepends="openjdk8 qt5-host-tools qt5-qmake"
makedepends="qt5-devel"
depends="virtual?java-runtime qt5-svg qt5-imageformats xrandr"
2022-01-10 11:32:22 +01:00
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"
2022-06-12 22:28:16 +02:00
checksum=c33484ae20c912d3dde2e55f64f24d8b86a9a9547631cd3b10481ddbf90f4735
2022-04-18 13:30:56 +02:00
if [ -z "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=0"
fi
2022-01-10 11:32:22 +01:00
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/"-" + QString/"_" + QString/'
rm -rf .git
}
post_install() {
vdoc ${FILESDIR}/README.voidlinux
}