From 75ab9d0d0c87968d8e23583881b565475bf32e90 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 29 Oct 2025 11:19:03 +0200 Subject: [PATCH] Switch to new download format and rebuild with automatic stripping --- pkg.info | 36 ++++++++++++++++++++++++++++++++---- source.sh | 10 ---------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/pkg.info b/pkg.info index 8340808..f0ee905 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,38 @@ name: prism-launcher description: Open source Minecraft launcher with the ability to manage multiple instances, accounts and mods -version: 9.4 +version: "9.4" +revision: 2 url: https://prismlauncher.org/ license: GPL3-only architecture: any -depends: ["cmark","gcc-libs","glibc","hicolor-icon-theme","jre","libglvnd","qt6-5compat","qt6-base","qt6-imageformats","qt6-networkauth","qt6-svg","quazip","tomlplusplus","zlib"] -optional_depends: ["glfw","openal","xorg-xrandr"] -make_depends: ["cmake","extra-cmake-modules","gamemode","jdk17","scdoc"] type: source +depends: + - cmark + - gcc-libs + - glibc + - hicolor-icon-theme + - jre + - libglvnd + - qt6-5compat + - qt6-base + - qt6-imageformats + - qt6-networkauth + - qt6-svg + - quazip + - tomlplusplus + - zlib +optional_depends: + - glfw + - openal + - xorg-xrandr +make_depends: + - cmake + - extra-cmake-modules + - gamemode + - jdk17 + - scdoc +downloads: + - url: https://github.com/PrismLauncher/PrismLauncher/releases/download/${BPM_PKG_VERSION}/PrismLauncher-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 77ab52239c2a2a9f77d7c4607e1d9cf40970f9240d2f5061b116a7b1b8fd0277 diff --git a/source.sh b/source.sh index 55300cf..02d594a 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/PrismLauncher/PrismLauncher/releases/download/${BPM_PKG_VERSION}/PrismLauncher-${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() {