Switch to new download format and rebuild with automatic stripping

This commit is contained in:
2025-10-29 11:19:03 +02:00
parent a1d03dae49
commit 75ab9d0d0c
2 changed files with 32 additions and 14 deletions
+32 -4
View File
@@ -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
-10
View File
@@ -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() {