summaryrefslogtreecommitdiffstats
path: root/minecraft
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-12-29 23:29:12 +0000
committer Eric Hameleers <alien@slackware.com>2014-12-29 23:29:12 +0000
commit88d7df224b9ee74d8280bcf757e97066b1ac8daa (patch)
tree2be4f2a716d8330868f6852c41fb08495c64c6b0 /minecraft
parentb6aac3cc4ff2a6b14e9988d36d851b478b00071d (diff)
downloadasb-88d7df224b9ee74d8280bcf757e97066b1ac8daa.tar.gz
asb-88d7df224b9ee74d8280bcf757e97066b1ac8daa.tar.xz
Updated to match the current Minecraft jar location & content.
Diffstat (limited to 'minecraft')
-rwxr-xr-xminecraft/build/minecraft.SlackBuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/minecraft/build/minecraft.SlackBuild b/minecraft/build/minecraft.SlackBuild
index 06eb30bd..3204da52 100755
--- a/minecraft/build/minecraft.SlackBuild
+++ b/minecraft/build/minecraft.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2012 Eric Hameleers, Eindhoven, NL
+# Copyright 2012, 2014 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -28,13 +28,16 @@
# For: minecraft
# Descr: a game about placing blocks
# URL: http://www.minecraft.net/
-# Needs: OpenAL
+# Needs: OpenAL,jre|openjre
# Changelog:
# latest-1: 14/Jan/2012 by Eric Hameleers <alien@slackware.com>
# * Initial build.
# latest-2: 24/mar/2012 by Eric Hameleers <alien@slackware.com>
# * Do not include minecraft.jar in the package for legal reasons.
# The .jar file will be downloaded when the package is installed.
+# latest-3: 30/dec/2014 by Eric Hameleers <alien@slackware.com>
+# * Update needed because of new download location and different
+# .jar file layout (it is executable now)
#
# Run 'sh minecraft.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -45,10 +48,10 @@
# Set initial variables:
PRGNAM=minecraft
+SRCNAM=Minecraft
VERSION=${VERSION:-latest}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
ARCH=noarch
-NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
# Where do we look for sources?
@@ -59,7 +62,7 @@ TMP=${TMP:-/tmp/build}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-SRCURL="http://www.minecraft.net/download/${PRGNAM}.jar"
+SRCURL="https://s3.amazonaws.com/Minecraft.Download/launcher/${SRCNAM}.jar"
##
## --- with a little luck, you won't have to edit below this point --- ##
@@ -120,11 +123,11 @@ if [ -x usr/bin/update-mime-database ]; then
fi
# Download the .jar file now:
-if [ ! -f usr/share/minecraft/minecraft.jar ]; then
+if [ ! -f usr/share/minecraft/Minecraft.jar ]; then
echo "Downloading your copy of '\$(basename ${SRCURL})' ..."
- wget -nv -T 20 -O usr/share/minecraft/minecraft.jar "${SRCURL}"
+ wget -nv -T 20 -O usr/share/minecraft/Minecraft.jar "${SRCURL}"
if [ \$? -eq 0 ]; then
- chmod 644 usr/share/minecraft/minecraft.jar
+ chmod 644 usr/share/minecraft/Minecraft.jar
else
echo "Downloading of '${SRCURL}' failed!"
echo "Please try downloading this file manually, and copy '\$(basename ${SRCURL})' into directory /usr/share/minecraft/ (as root)."