summaryrefslogtreecommitdiffstats
path: root/games/einstein
diff options
context:
space:
mode:
Diffstat (limited to 'games/einstein')
-rw-r--r--games/einstein/einstein.SlackBuild16
-rw-r--r--games/einstein/einstein.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/games/einstein/einstein.SlackBuild b/games/einstein/einstein.SlackBuild
index 34148297e6..390acf730d 100644
--- a/games/einstein/einstein.SlackBuild
+++ b/games/einstein/einstein.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for einstein
#
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=einstein
VERSION=${VERSION:-2.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -82,4 +92,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/games/einstein/einstein.info b/games/einstein/einstein.info
index a7a2db8382..be6e64307d 100644
--- a/games/einstein/einstein.info
+++ b/games/einstein/einstein.info
@@ -1,7 +1,7 @@
PRGNAM="einstein"
VERSION="2.1.1"
HOMEPAGE="https://github.com/lksj/einstein-puzzle"
-DOWNLOAD="https://github.com/lksj/einstein-puzzle/archive/v2.1.1.tar.gz"
+DOWNLOAD="https://github.com/lksj/einstein-puzzle/archive/v2.1.1/einstein-puzzle-2.1.1.tar.gz"
MD5SUM="1228a1fb0e90bc40d8b0b1737dcbc3c3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""