diff options
author | Samuel Young <samyoung12788@gmail.com> | 2023-06-10 07:52:51 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-10 07:52:51 +0700 |
commit | d8e78846e7b9faff498da42c249caf087a487eef (patch) | |
tree | a94d8497853eb500ea9629f4bd68decb7ce7cfd2 /games/PrismLauncher | |
parent | 61b5784641a86a13b75bcf83e30ee5f766452111 (diff) |
games/PrismLauncher: Updated for version 7.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/PrismLauncher')
-rw-r--r-- | games/PrismLauncher/PrismLauncher.SlackBuild | 26 | ||||
-rw-r--r-- | games/PrismLauncher/PrismLauncher.info | 12 | ||||
-rw-r--r-- | games/PrismLauncher/README | 5 | ||||
-rw-r--r-- | games/PrismLauncher/slack-desc | 2 |
4 files changed, 18 insertions, 27 deletions
diff --git a/games/PrismLauncher/PrismLauncher.SlackBuild b/games/PrismLauncher/PrismLauncher.SlackBuild index 494a92ebb9ba2..2dfbc44edf5b1 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 a2a282c675abe..56014b95f9a43 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 0f4603f0bd6ef..7a7ed454307a0 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 ddb5645508d3b..720e00fe2f993 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: |