From 1d76e9cd67382a9fb6126f575d6ec8a7af196b7a Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 19 Oct 2022 13:50:33 -0400 Subject: [PATCH] PrismLauncher: update to 5.0, rename from PolyMC --- srcpkgs/PolyMC | 1 + srcpkgs/PolyMC/template | 35 -------------- srcpkgs/PolyMC/update | 2 - .../files/README.voidlinux | 0 srcpkgs/PrismLauncher/template | 46 +++++++++++++++++++ srcpkgs/PrismLauncher/update | 2 + 6 files changed, 49 insertions(+), 37 deletions(-) create mode 120000 srcpkgs/PolyMC delete mode 100644 srcpkgs/PolyMC/template delete mode 100644 srcpkgs/PolyMC/update rename srcpkgs/{PolyMC => PrismLauncher}/files/README.voidlinux (100%) create mode 100644 srcpkgs/PrismLauncher/template create mode 100644 srcpkgs/PrismLauncher/update diff --git a/srcpkgs/PolyMC b/srcpkgs/PolyMC new file mode 120000 index 000000000000..7527b4a5e65c --- /dev/null +++ b/srcpkgs/PolyMC @@ -0,0 +1 @@ +PrismLauncher \ No newline at end of file diff --git a/srcpkgs/PolyMC/template b/srcpkgs/PolyMC/template deleted file mode 100644 index 350b51fd49d3..000000000000 --- a/srcpkgs/PolyMC/template +++ /dev/null @@ -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 " -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 -} diff --git a/srcpkgs/PolyMC/update b/srcpkgs/PolyMC/update deleted file mode 100644 index 7517baa7a2f7..000000000000 --- a/srcpkgs/PolyMC/update +++ /dev/null @@ -1,2 +0,0 @@ -site=https://github.com/PolyMC/PolyMC/tags -pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?' diff --git a/srcpkgs/PolyMC/files/README.voidlinux b/srcpkgs/PrismLauncher/files/README.voidlinux similarity index 100% rename from srcpkgs/PolyMC/files/README.voidlinux rename to srcpkgs/PrismLauncher/files/README.voidlinux diff --git a/srcpkgs/PrismLauncher/template b/srcpkgs/PrismLauncher/template new file mode 100644 index 000000000000..7c197bc74937 --- /dev/null +++ b/srcpkgs/PrismLauncher/template @@ -0,0 +1,46 @@ +# 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 xrandr" +short_desc="Custom launcher for Minecraft" +maintainer="Philipp David " +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 + 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 +} diff --git a/srcpkgs/PrismLauncher/update b/srcpkgs/PrismLauncher/update new file mode 100644 index 000000000000..cc6e127e099b --- /dev/null +++ b/srcpkgs/PrismLauncher/update @@ -0,0 +1,2 @@ +site=https://github.com/PrismLauncher/PrismLauncher/tags +pattern='tag/\K[\d]+\.[\d]+(\.[\d]+)?'