summaryrefslogtreecommitdiffstats
path: root/system/hercules
diff options
context:
space:
mode:
Diffstat (limited to 'system/hercules')
-rw-r--r--system/hercules/hercules.SlackBuild30
-rw-r--r--system/hercules/hercules.info8
2 files changed, 25 insertions, 13 deletions
diff --git a/system/hercules/hercules.SlackBuild b/system/hercules/hercules.SlackBuild
index 4212548092..d276e607d6 100644
--- a/system/hercules/hercules.SlackBuild
+++ b/system/hercules/hercules.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Hercules:
# the System/370, ESA/390 and z/Architecture emulator
@@ -6,26 +6,36 @@
# Written by Niels Horn - niels.horn@gmail.com
# revision date 2010/03/10
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=hercules
-VERSION=${VERSION:-3.07}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-3.13}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then
@@ -90,7 +100,7 @@ cat $CWD/hercules.png > $PKG/usr/share/pixmaps/hercules.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp -a \
- ABOUT-NLS CHANGES COPYRIGHT INSTALL README.* RELEASE.NOTES \
+ COPYRIGHT INSTALL README.* RELEASE.NOTES \
$PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -101,9 +111,11 @@ mv $PKG/usr/share/hercules/*.{html,css} $PKG/usr/doc/$PRGNAM-$VERSION/html/
mv $PKG/usr/share/hercules/images $PKG/usr/doc/$PRGNAM-$VERSION/html/
mv $PKG/usr/share/hercules/include $PKG/usr/doc/$PRGNAM-$VERSION/html/
+rm -f $PKG/usr/lib*/*.la
+
mkdir -p $PKG/install
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/system/hercules/hercules.info b/system/hercules/hercules.info
index 717ea6ba93..8f14fd8273 100644
--- a/system/hercules/hercules.info
+++ b/system/hercules/hercules.info
@@ -1,8 +1,8 @@
PRGNAM="hercules"
-VERSION="3.07"
-HOMEPAGE="http://www.hercules-390.org/"
-DOWNLOAD="http://www.ibiblio.org/jmaynard/herc307/hercules-3.07.tar.gz"
-MD5SUM="a12aa1645b0695b25b7fc0c9a3ccab3a"
+VERSION="3.13"
+HOMEPAGE="http://www.hercules-390.eu/"
+DOWNLOAD="http://downloads.hercules-390.eu/hercules-3.13.tar.gz"
+MD5SUM="3e5df336b4e787cbb78f3489e71971fb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""