diff options
author | Arn0 <yth@ythogtha.org> | 2024-05-03 11:46:13 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-05-04 21:45:17 +0700 |
commit | 44291aba8f8051e2ba7156b0859c552022642335 (patch) | |
tree | f21c4dc02fceb7520a32fb49ba539ed7c134e4cd /games | |
parent | 7f48b43ce73fe689c99edefdc6f96e442d22a15a (diff) |
games/Mindustry: Repackage instead of Gradle build
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/Mindustry/Mindustry.SlackBuild | 21 | ||||
-rw-r--r-- | games/Mindustry/Mindustry.info | 6 | ||||
-rw-r--r-- | games/Mindustry/Mindustry.png | bin | 0 -> 13869 bytes |
3 files changed, 8 insertions, 19 deletions
diff --git a/games/Mindustry/Mindustry.SlackBuild b/games/Mindustry/Mindustry.SlackBuild index 37e77316d51af..cb88e69d20698 100644 --- a/games/Mindustry/Mindustry.SlackBuild +++ b/games/Mindustry/Mindustry.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=Mindustry VERSION=${VERSION:-146} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} SERVER=${SERVER:-yes} @@ -64,23 +64,12 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION 2>/dev/null -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -./gradlew --no-daemon dist -Pbuildversion=146 desktop:dist mkdir -p $PKG/usr/share/{$PRGNAM,applications} \ $PKG/usr/games -cp -a desktop/build/libs/$PRGNAM.jar \ +install -m 644 $CWD/$PRGNAM.jar \ $PKG/usr/share/$PRGNAM -cp -a core/assets/icons/icon_64.png \ +install -m 644 $CWD/$PRGNAM.png \ $PKG/usr/share/$PRGNAM/$PRGNAM.png # Create destop entry @@ -105,8 +94,7 @@ EOF chmod 755 $PKG/usr/games/$PRGNAM if [ "$SERVER" = "yes" ]; then - ./gradlew --no-daemon dist -Pbuildversion=146 server:dist - cp -a server/build/libs/server-release.jar \ + install -m 644 $CWD/server-release.jar \ $PKG/usr/share/$PRGNAM/$PRGNAM-server.jar # Create destop entry cat > $PKG/usr/share/applications/$PRGNAM-server.desktop <<EOF @@ -131,7 +119,6 @@ EOF fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.md LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/games/Mindustry/Mindustry.info b/games/Mindustry/Mindustry.info index f7349a2884889..653ea3cbb9dea 100644 --- a/games/Mindustry/Mindustry.info +++ b/games/Mindustry/Mindustry.info @@ -3,8 +3,10 @@ VERSION="146" HOMEPAGE="https://mindustrygame.github.io/" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/Anuken/Mindustry/archive/v146/Mindustry-146.tar.gz" -MD5SUM_x86_64="9da9f917ec9057d9e3b38134f3897478" +DOWNLOAD_x86_64="https://github.com/Anuken/Mindustry/releases/download/v146/Mindustry.jar \ + https://github.com/Anuken/Mindustry/releases/download/v146/server-release.jar" +MD5SUM_x86_64="26193b0d3bad4bc84e044cce19a456d7 \ + 7ddf0531d6abc46b4b8c978860179020" REQUIRES="zulu-openjdk17" MAINTAINER="Yth - Arnaud" EMAIL="yth@ythogtha.org" diff --git a/games/Mindustry/Mindustry.png b/games/Mindustry/Mindustry.png Binary files differnew file mode 100644 index 0000000000000..a67eae01f3457 --- /dev/null +++ b/games/Mindustry/Mindustry.png |