summaryrefslogtreecommitdiff
path: root/games/einstein/einstein.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/einstein/einstein.SlackBuild')
-rw-r--r--games/einstein/einstein.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/games/einstein/einstein.SlackBuild b/games/einstein/einstein.SlackBuild
index a71f74da7d..93e0a15856 100644
--- a/games/einstein/einstein.SlackBuild
+++ b/games/einstein/einstein.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for einstein
#
-# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2009-2017 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=einstein
-VERSION=2.0
+VERSION=2.1.1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -53,9 +53,9 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-puzzle-$VERSION
+tar xvf $CWD/$PRGNAM-puzzle-$VERSION-src.tar.gz || tar xvf v$VERSION.tar.gz
+cd $PRGNAM-puzzle-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -63,11 +63,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Some patches from debian.
-for PATCH in $CWD/patches/*.diff ; do
- patch -p0 < $PATCH
-done
-
# Build
make PREFIX="/usr" OPTIMIZE="$SLKCFLAGS"
@@ -78,7 +73,7 @@ install -D $CWD/einstein.desktop $PKG/usr/share/applications/einstein.desktop
install -D $CWD/einstein.png $PKG/usr/share/pixmaps/einstein.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README $CWD/patches $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION