aboutsummaryrefslogtreecommitdiff
path: root/development/s51dude
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-30 15:25:10 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-02 18:18:46 +0700
commit9cf4a908bf0418700a561760756d59ae4ce2a4e5 (patch)
treef1af37db34f55446bee30deca6af64c846b13601 /development/s51dude
parent7865e9a7c233010ffc38ead0ccc30c1b723109e6 (diff)
development/s51dude: Fix download URL.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/s51dude')
-rw-r--r--development/s51dude/s51dude.SlackBuild24
-rw-r--r--development/s51dude/s51dude.info2
2 files changed, 11 insertions, 15 deletions
diff --git a/development/s51dude/s51dude.SlackBuild b/development/s51dude/s51dude.SlackBuild
index 3e8e1d14dd3d..476042ac74ab 100644
--- a/development/s51dude/s51dude.SlackBuild
+++ b/development/s51dude/s51dude.SlackBuild
@@ -32,15 +32,12 @@ 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
-# 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
@@ -50,8 +47,8 @@ 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=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -70,23 +67,22 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+[ -e $CWD/$PRGNAM-$VERSION.tar.bz2 ] && \
+ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || \
+ tar xvf $CWD/${PRGNAM}_$VERSION.orig.tar.bz2
cd $PRGNAM-$VERSION
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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
make CFLAGS="-fgnu89-inline $SLKCFLAGS"
mkdir -p $PKG/usr/bin $PKG/usr/man/man1
-install -m755 s51dude $PKG/usr/bin
-install -m644 s51dude.1 $PKG/usr/man/man1
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+install -s -m755 $PRGNAM $PKG/usr/bin
+gzip -9c < $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README TODO COPYING $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/development/s51dude/s51dude.info b/development/s51dude/s51dude.info
index e937be5a4d19..24b569fa9c1e 100644
--- a/development/s51dude/s51dude.info
+++ b/development/s51dude/s51dude.info
@@ -1,7 +1,7 @@
PRGNAM="s51dude"
VERSION="0.3.1"
HOMEPAGE="http://tulku.bitbucket.org/s51dude/"
-DOWNLOAD="https://bitbucket.org/tulku/s51dude/downloads/s51dude-0.3.1.tar.bz2"
+DOWNLOAD="https://deb.debian.org/debian/pool/main/s/s51dude/s51dude_0.3.1.orig.tar.bz2"
MD5SUM="76b1e50e785fa64705c3700de557e90d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""