makedeb
Minecraft launcher with ability to manage multiple instances.
Click here to go back to the commit logs for prismlauncher.
Hash: d6c970de2a511ca771776829bc0aee015f22c90c
Message: upgpkg: prismlauncher 9.1-1
Signed-off-by: txtsd <code@ihavea.quest>
diff --git a/.SRCINFO b/.SRCINFO
index 5ae60d5..4023d6b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,7 +4,7 @@ postinst = postinst.sh
pkgbase = prismlauncher
pkgdesc = Minecraft launcher with ability to manage multiple instances.
pkgrel = 1
-pkgver = 9.0
+pkgver = 9.1
url = https://prismlauncher.org
arch = i386
arch = amd64
@@ -40,10 +40,10 @@ optdepends = java-runtime=8: support for Minecraft versions <= 1.16
optdepends = x11-xserver-utils: xrandr is needed to support Minecraft versions <= 1.12
optdepends = s!gamemode: support for GameMode
optdepends = s!mangohud: HUD overlay for FPS and temperatures
-source = https://github.com/PrismLauncher/PrismLauncher/releases/download/9.0/PrismLauncher-9.0.tar.gz
+source = https://github.com/PrismLauncher/PrismLauncher/releases/download/9.1/PrismLauncher-9.1.tar.gz
source = gcc-armv7-fix.patch
source = copyright
-sha256sums = 8c3dae2469c70d460cd8e2747dc4e61c2e31c15f0754d9e41e23563ac544e2be
+sha256sums = 0aac56ec6b039e28f0605e7d86ebf602ee28dd9e4c7a16915ca974104954e832
sha256sums = 42394447d4b52c9329ff45f3c700c0eb2090a5803c5de010587d64294c37420f
sha256sums = 55f14ca1c20ba05785b248b3454ce2671149112d6b7c1a4e4fd24f4dde8f4c71
makedepends = cmake
diff --git a/PKGBUILD b/PKGBUILD
index 91e04a7..ea87d40 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,55 @@
# Maintainer: lordpipe <lordpipe@protonmail.com>
+# Maintainer: txtsd <mpr.makedeb@ihavea.quest>
# Contributor: Sefa Eyeoglu <conctact@scrumplex.net>
# Contributor: dada513 <dada513@protonmail.com>
pkgname=prismlauncher
-pkgver=9.0
+pkgver=9.1
pkgrel=1
pkgdesc='Minecraft launcher with ability to manage multiple instances.'
arch=('i386' 'amd64' 'arm64' 'armhf' 'riscv64')
url='https://prismlauncher.org'
license=('GPL-3')
-depends=('libqt6core5compat6'
- 'libqt6core6'
- 'libqt6network6'
- 'libqt6networkauth6'
- 'libqt6svg6'
- 'libqt6widgets6'
- 'libqt6xml6'
- 'qt6-image-formats-plugins')
-makedepends=('cmake'
- 'extra-cmake-modules'
- 'g++'
- 'gcc'
- 'git'
- 'libgl1-mesa-dev'
- 'libqt6core5compat6-dev'
- 'openjdk-17-jdk'
- 'qt6-base-dev'
- 'qt6-networkauth-dev'
- 'qtchooser'
- 'scdoc'
- 'zlib1g-dev')
-optdepends=('flite: narrator support'
- 'java-runtime=17: support for Minecraft versions >= 1.17 and <= 1.20.4'
- 'java-runtime=21: support for Minecraft versions >= 1.20.5'
- 'java-runtime=8: support for Minecraft versions <= 1.16'
- 'x11-xserver-utils: xrandr is needed to support Minecraft versions <= 1.12'
- 's!gamemode: support for GameMode'
- 's!mangohud: HUD overlay for FPS and temperatures')
-source=("https://github.com/PrismLauncher/PrismLauncher/releases/download/$pkgver/PrismLauncher-$pkgver.tar.gz"
- 'gcc-armv7-fix.patch'
- 'copyright')
-sha256sums=('8c3dae2469c70d460cd8e2747dc4e61c2e31c15f0754d9e41e23563ac544e2be'
+depends=(
+ 'libqt6core5compat6'
+ 'libqt6core6'
+ 'libqt6network6'
+ 'libqt6networkauth6'
+ 'libqt6svg6'
+ 'libqt6widgets6'
+ 'libqt6xml6'
+ 'qt6-image-formats-plugins'
+)
+makedepends=(
+ 'cmake'
+ 'extra-cmake-modules'
+ 'g++'
+ 'gcc'
+ 'git'
+ 'libgl1-mesa-dev'
+ 'libqt6core5compat6-dev'
+ 'openjdk-17-jdk'
+ 'qt6-base-dev'
+ 'qt6-networkauth-dev'
+ 'qtchooser'
+ 'scdoc'
+ 'zlib1g-dev'
+)
+optdepends=(
+ 'flite: narrator support'
+ 'java-runtime=17: support for Minecraft versions >= 1.17 and <= 1.20.4'
+ 'java-runtime=21: support for Minecraft versions >= 1.20.5'
+ 'java-runtime=8: support for Minecraft versions <= 1.16'
+ 'x11-xserver-utils: xrandr is needed to support Minecraft versions <= 1.12'
+ 's!gamemode: support for GameMode'
+ 's!mangohud: HUD overlay for FPS and temperatures'
+)
+source=(
+ "https://github.com/PrismLauncher/PrismLauncher/releases/download/${pkgver}/PrismLauncher-${pkgver}.tar.gz"
+ 'gcc-armv7-fix.patch'
+ 'copyright'
+)
+sha256sums=('0aac56ec6b039e28f0605e7d86ebf602ee28dd9e4c7a16915ca974104954e832'
'42394447d4b52c9329ff45f3c700c0eb2090a5803c5de010587d64294c37420f'
'55f14ca1c20ba05785b248b3454ce2671149112d6b7c1a4e4fd24f4dde8f4c71')
postinst=postinst.sh
@@ -59,61 +68,63 @@ CXXFLAGS=${CXXFLAGS/-fcf-protection/}
# if the user hasn't specified a tuning/architecture, specify our own minimal defaults to cover the earliest CPUs
if [[ ${CFLAGS} != *"-mtune"* && ${CFLAGS} != *"-march"* ]]; then
- case "$CARCH" in
- amd64)
- CFLAGS+=" -march=x86-64 -fcf-protection"
- CXXFLAGS+=" -march=x86-64 -fcf-protection"
- ;;
- i386)
- CFLAGS+=" -march=i686"
- CXXFLAGS+=" -march=i686"
- ;;
- arm64)
- CFLAGS+=" -march=armv8-a"
- CXXFLAGS+=" -march=armv8-a"
- ;;
- armhf)
- CFLAGS+=" -march=armv7-a+fp"
- CXXFLAGS+=" -march=armv7-a+fp"
- ;;
- riscv64)
- CFLAGS+=" -march=rv64imafdc"
- CXXFLAGS+=" -march=rv64imafdc"
- ;;
- esac
+ case "${CARCH}" in
+ amd64)
+ CFLAGS+=" -march=x86-64 -fcf-protection"
+ CXXFLAGS+=" -march=x86-64 -fcf-protection"
+ ;;
+ i386)
+ CFLAGS+=" -march=i686"
+ CXXFLAGS+=" -march=i686"
+ ;;
+ arm64)
+ CFLAGS+=" -march=armv8-a"
+ CXXFLAGS+=" -march=armv8-a"
+ ;;
+ armhf)
+ CFLAGS+=" -march=armv7-a+fp"
+ CXXFLAGS+=" -march=armv7-a+fp"
+ ;;
+ riscv64)
+ CFLAGS+=" -march=rv64imafdc"
+ CXXFLAGS+=" -march=rv64imafdc"
+ ;;
+ esac
fi
prepare() {
- # workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860
- # more info: https://github.com/PrismLauncher/PrismLauncher/issues/128
- if [[ "$(uname -m)" = armv7* ]]; then
- echo "GCC / ARMv7 fix is needed for this architecture, applying gcc-armv7-fix.patch"
- patch --directory="PrismLauncher-$pkgver" --forward --strip=1 --input="${srcdir}/gcc-armv7-fix.patch"
- else
- echo "GCC / ARMv7 fix is not needed for this architecture, skipping gcc-armv7-fix.patch"
- fi
+ # workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860
+ # more info: https://github.com/PrismLauncher/PrismLauncher/issues/128
+ if [[ "$(uname -m)" = armv7* ]]; then
+ echo "GCC / ARMv7 fix is needed for this architecture, applying gcc-armv7-fix.patch"
+ patch --directory="PrismLauncher-${pkgver}" --forward --strip=1 --input="${srcdir}/gcc-armv7-fix.patch"
+ else
+ echo "GCC / ARMv7 fix is not needed for this architecture, skipping gcc-armv7-fix.patch"
+ fi
}
build() {
- cd "${srcdir}/PrismLauncher-$pkgver"
- cmake -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX="/usr" \
- -DLauncher_BUILD_PLATFORM="debian" \
- -DLauncher_APP_BINARY_NAME="${pkgname}" \
- -DLauncher_ENABLE_JAVA_DOWNLOADER=ON \
- -DENABLE_LTO=ON \
- -Bbuild -S.
- cmake --build build
+ cd "${srcdir}/PrismLauncher-${pkgver}"
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DLauncher_BUILD_PLATFORM="debian" \
+ -DLauncher_APP_BINARY_NAME="${pkgname}" \
+ -DLauncher_ENABLE_JAVA_DOWNLOADER=ON \
+ -DENABLE_LTO=ON \
+ -Bbuild -S.
+ cmake --build build
}
check() {
- cd "${srcdir}/PrismLauncher-$pkgver/build"
- ctest . -E Task # Skip unreliable Task test
+ cd "${srcdir}/PrismLauncher-${pkgver}/build"
+ ctest . -E Task # Skip unreliable Task test
}
package() {
- cd "${srcdir}/PrismLauncher-$pkgver/build"
- DESTDIR="$pkgdir" cmake --install .
- mkdir -p "${pkgdir}/usr/share/doc/$pkgname"
- cp -v "${srcdir}/copyright" "${pkgdir}/usr/share/doc/$pkgname/copyright"
+ cd "${srcdir}/PrismLauncher-${pkgver}/build"
+ DESTDIR="${pkgdir}" cmake --install .
+ mkdir -p "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -v "${srcdir}/copyright" "${pkgdir}/usr/share/doc/${pkgname}/copyright"
}
+
+# vim: set sw=2 expandtab: