summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Samuel Young2023-06-10 02:52:51 +0200
committer Willy Sudiarto Raharjo2023-06-10 02:52:51 +0200
commitd8e78846e7b9faff498da42c249caf087a487eef (patch)
treea94d8497853eb500ea9629f4bd68decb7ce7cfd2 /games
parent61b5784641a86a13b75bcf83e30ee5f766452111 (diff)
downloadslackbuilds-d8e78846e7b9faff498da42c249caf087a487eef.tar.gz
games/PrismLauncher: Updated for version 7.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/PrismLauncher/PrismLauncher.SlackBuild26
-rw-r--r--games/PrismLauncher/PrismLauncher.info12
-rw-r--r--games/PrismLauncher/README5
-rw-r--r--games/PrismLauncher/slack-desc2
4 files changed, 18 insertions, 27 deletions
diff --git a/games/PrismLauncher/PrismLauncher.SlackBuild b/games/PrismLauncher/PrismLauncher.SlackBuild
index 494a92ebb9..2dfbc44edf 100644
--- a/games/PrismLauncher/PrismLauncher.SlackBuild
+++ b/games/PrismLauncher/PrismLauncher.SlackBuild
@@ -25,9 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=PrismLauncher
-LIBNBTPLUSPLUS=libnbtplusplus-2203af7eeb48c45398139b583615134efd8d407f
-QUAZIP=quazip-6117161af08e366c37499895b00ef62f93adc345
-VERSION=${VERSION:-6.3}
+VERSION=${VERSION:-7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,10 +68,6 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-tar xvf $CWD/$LIBNBTPLUSPLUS.tar.gz -C \
- $PRGNAM-$VERSION/libraries/libnbtplusplus --strip-components 1
-tar xvf $CWD/$QUAZIP.tar.gz -C \
- $PRGNAM-$VERSION/libraries/quazip --strip-components 1
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -84,30 +78,28 @@ find -L . \
mkdir -p build
cd build
- cmake -S . -B build -G Ninja \
+ cmake -S . -G Ninja \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DENABLE_LTO=ON \
+ -DLauncher_QT_VERSION_MAJOR="5" \
-DCMAKE_BUILD_TYPE=Release ..
- cmake --build build
- DESTDIR=$PKG cmake --install build
+ cmake --build $(pwd)
+ DESTDIR=$PKG cmake --install $(pwd)
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+
+cp -a \
+ CONTRIBUTING.md COPYING.md README.md LICENSE \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-cat $TMP/$PRGNAM-$VERSION/CONTRIBUTING.md > $PKG/usr/doc/$PRGNAM-$VERSION/CONTRIBUTING
-cat $TMP/$PRGNAM-$VERSION/COPYING.md > $PKG/usr/doc/$PRGNAM-$VERSION/COPYING
-cat $TMP/$PRGNAM-$VERSION/README.md > $PKG/usr/doc/$PRGNAM-$VERSION/README
-cat $TMP/$PRGNAM-$VERSION/LICENSE > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/games/PrismLauncher/PrismLauncher.info b/games/PrismLauncher/PrismLauncher.info
index a2a282c675..56014b95f9 100644
--- a/games/PrismLauncher/PrismLauncher.info
+++ b/games/PrismLauncher/PrismLauncher.info
@@ -1,14 +1,10 @@
PRGNAM="PrismLauncher"
-VERSION="6.3"
+VERSION="7.0"
HOMEPAGE="https://prismlauncher.org"
-DOWNLOAD="https://github.com/PrismLauncher/PrismLauncher/archive/6.3/PrismLauncher-6.3.tar.gz \
- https://github.com/stachenov/quazip/archive/6117161af08e366c37499895b00ef62f93adc345/quazip-6117161af08e366c37499895b00ef62f93adc345.tar.gz \
- https://github.com/PrismLauncher/libnbtplusplus/archive/2203af7eeb48c45398139b583615134efd8d407f/libnbtplusplus-2203af7eeb48c45398139b583615134efd8d407f.tar.gz"
-MD5SUM="85458f012278873cad10cb0fe4024734 \
- 40aba3bbca837f32e90fa4d035fbe578 \
- 058fa80d908372a09658b7feec380a64"
+DOWNLOAD="https://github.com/PrismLauncher/PrismLauncher/releases/download/7.0/PrismLauncher-7.0.tar.gz"
+MD5SUM="dcf4073b50447ac659497e88f9299aa4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="OpenJDK17 ghc_filesystem scdoc tomlplusplus"
+REQUIRES="OpenJDK17 scdoc"
MAINTAINER="Samuel Young"
EMAIL="samyoung12788@gmail.com"
diff --git a/games/PrismLauncher/README b/games/PrismLauncher/README
index 0f4603f0bd..7a7ed45430 100644
--- a/games/PrismLauncher/README
+++ b/games/PrismLauncher/README
@@ -5,5 +5,8 @@ instances, accounts and mods. Focused on user freedom and free
redistributability.
A Microsoft or Mojang account that owns Minecraft is required to
-download and play the game through PolyMc.
+download and play the game through PrismLauncher.
+Other versions of Java may work, though it is recommended to compile
+PrismLauncher with OpenJDK17. Your JAVA_HOME environment variable
+determines which version of Java will be used.
diff --git a/games/PrismLauncher/slack-desc b/games/PrismLauncher/slack-desc
index ddb5645508..720e00fe2f 100644
--- a/games/PrismLauncher/slack-desc
+++ b/games/PrismLauncher/slack-desc
@@ -12,8 +12,8 @@ PrismLauncher: An Open Source Minecraft launcher with the ability to manage mult
PrismLauncher: instances, accounts and mods. Focused on user freedom and free
PrismLauncher: redistributability.
PrismLauncher:
-PrismLauncher: Homepage: https://PrismLauncher.org
PrismLauncher:
PrismLauncher:
PrismLauncher:
+PrismLauncher: Homepage: https://PrismLauncher.org
PrismLauncher: