games/Mindustry: Repackage instead of Gradle build

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Arn0 2024-05-03 11:46:13 +02:00 committed by Willy Sudiarto Raharjo
parent 7f48b43ce7
commit 44291aba8f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 8 additions and 19 deletions

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=Mindustry PRGNAM=Mindustry
VERSION=${VERSION:-146} VERSION=${VERSION:-146}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
SERVER=${SERVER:-yes} SERVER=${SERVER:-yes}
@ -64,23 +64,12 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP 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} \ mkdir -p $PKG/usr/share/{$PRGNAM,applications} \
$PKG/usr/games $PKG/usr/games
cp -a desktop/build/libs/$PRGNAM.jar \ install -m 644 $CWD/$PRGNAM.jar \
$PKG/usr/share/$PRGNAM $PKG/usr/share/$PRGNAM
cp -a core/assets/icons/icon_64.png \ install -m 644 $CWD/$PRGNAM.png \
$PKG/usr/share/$PRGNAM/$PRGNAM.png $PKG/usr/share/$PRGNAM/$PRGNAM.png
# Create destop entry # Create destop entry
@ -105,8 +94,7 @@ EOF
chmod 755 $PKG/usr/games/$PRGNAM chmod 755 $PKG/usr/games/$PRGNAM
if [ "$SERVER" = "yes" ]; then if [ "$SERVER" = "yes" ]; then
./gradlew --no-daemon dist -Pbuildversion=146 server:dist install -m 644 $CWD/server-release.jar \
cp -a server/build/libs/server-release.jar \
$PKG/usr/share/$PRGNAM/$PRGNAM-server.jar $PKG/usr/share/$PRGNAM/$PRGNAM-server.jar
# Create destop entry # Create destop entry
cat > $PKG/usr/share/applications/$PRGNAM-server.desktop <<EOF cat > $PKG/usr/share/applications/$PRGNAM-server.desktop <<EOF
@ -131,7 +119,6 @@ EOF
fi fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -3,8 +3,10 @@ VERSION="146"
HOMEPAGE="https://mindustrygame.github.io/" HOMEPAGE="https://mindustrygame.github.io/"
DOWNLOAD="UNSUPPORTED" DOWNLOAD="UNSUPPORTED"
MD5SUM="" MD5SUM=""
DOWNLOAD_x86_64="https://github.com/Anuken/Mindustry/archive/v146/Mindustry-146.tar.gz" DOWNLOAD_x86_64="https://github.com/Anuken/Mindustry/releases/download/v146/Mindustry.jar \
MD5SUM_x86_64="9da9f917ec9057d9e3b38134f3897478" https://github.com/Anuken/Mindustry/releases/download/v146/server-release.jar"
MD5SUM_x86_64="26193b0d3bad4bc84e044cce19a456d7 \
7ddf0531d6abc46b4b8c978860179020"
REQUIRES="zulu-openjdk17" REQUIRES="zulu-openjdk17"
MAINTAINER="Yth - Arnaud" MAINTAINER="Yth - Arnaud"
EMAIL="yth@ythogtha.org" EMAIL="yth@ythogtha.org"

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB