void-packages/srcpkgs/PolyMC/template
2022-04-08 23:23:21 +02:00

30 lines
904 B
Bash

# Template file for 'PolyMC'
pkgname=PolyMC
version=1.1.1
revision=1
build_style=cmake
configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_PORTABLE=0
-DLauncher_VERSION_BUILD=${revision}"
hostmakedepends="openjdk8 qt5-host-tools qt5-qmake"
makedepends="qt5-devel"
depends="virtual?java-runtime 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=7ade9abc3a6f61ed27a129c10084c783cc9a3266484a53e29dabcc1cbb0ba5c4
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
}