From 6ac8f286a0ee5daa285091a71ffdeda0bed2ba5f Mon Sep 17 00:00:00 2001 From: Philipp David Date: Mon, 10 Jan 2022 11:32:22 +0100 Subject: [PATCH] New package: PolyMC-1.0.5 --- srcpkgs/PolyMC/template | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 srcpkgs/PolyMC/template diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template new file mode 100644 index 000000000000..49ab99911106 --- /dev/null +++ b/srcpkgs/PolyMC/template @@ -0,0 +1,39 @@ +# Template file for 'PolyMC' +pkgname=PolyMC +version=1.0.5 +revision=1 +_nbtversion="dc72a20b7efd304d12af2025223fad07b4b78464" +_quazipversion="c9ef32de19bceb58d236f5c22382698deaec69fd" +build_style=cmake +configure_args="-DLauncher_BUILD_PLATFORM=Void -DLauncher_LAYOUT=lin-system + -DLauncher_APP_BINARY_NAME=polymc" +hostmakedepends="openjdk11 qt5-host-tools qt5-qmake tar" +makedepends="qt5-devel" +depends="virtual?java-environment" +short_desc="Custom launcher for Minecraft" +maintainer="Philipp David " +license="Apache-2.0, GPL-3.0-or-later, LGPL-3.0-or-later, LGPL-2.1-or-later, + MIT, BSD-3-Clause, BSD-2-Clause" +homepage="https://polymc.org/" +distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz + https://github.com/MultiMC/libnbtplusplus/archive/${_nbtversion}.tar.gz + https://github.com/${pkgname}/quazip/archive/${_quazipversion}.tar.gz" +checksum="fbed173a36de945309efe4e3447dd003b8365d55e8cf5f5b6f6a8bfd971ca413 + 2ed9dc824007b4f7b12f807f56c98e1248b8a7aba7eca4838085092958dc1595 + 6c5e719833c143f300d7f6101b3c04dfb1bc025e3f672d803dcef0fbce29e254" +skip_extraction="${_nbtversion}.tar.gz ${_quazipversion}.tar.gz" + +case "$XBPS_TARGET_MACHINE" in + armv*) broken="https://github.com/MultiMC/MultiMC5/issues/2895";; +esac + +pre_configure() { + tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_nbtversion}.tar.gz" \ + -C "${wrksrc}/libraries/libnbtplusplus" --strip-components 1 + tar zxvf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_quazipversion}.tar.gz" \ + -C "${wrksrc}/libraries/quazip" --strip-components 1 +} + +post_install() { + vlicense COPYING.md +}