summaryrefslogtreecommitdiffstats
path: root/development/patchutils
diff options
context:
space:
mode:
Diffstat (limited to 'development/patchutils')
-rw-r--r--development/patchutils/patchutils.SlackBuild26
-rw-r--r--development/patchutils/patchutils.info6
2 files changed, 21 insertions, 11 deletions
diff --git a/development/patchutils/patchutils.SlackBuild b/development/patchutils/patchutils.SlackBuild
index 1d5dd5c9aa..7a1ab80589 100644
--- a/development/patchutils/patchutils.SlackBuild
+++ b/development/patchutils/patchutils.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for patchutils
-# Copyright 2008-2016 Robby Workman, Tuscaloosa, Alabama, USA
+# Copyright 2008-2021 Robby Workman, Tuscaloosa, Alabama, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,26 +24,36 @@
# Updated by Donald Cooley <dfc@warpmail.net>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=patchutils
-VERSION=${VERSION:-0.3.4}
+VERSION=${VERSION:-0.4.2}
BUILD=${BUILD:-1}
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=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
@@ -98,4 +108,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/development/patchutils/patchutils.info b/development/patchutils/patchutils.info
index 261811c68a..680777f553 100644
--- a/development/patchutils/patchutils.info
+++ b/development/patchutils/patchutils.info
@@ -1,8 +1,8 @@
PRGNAM="patchutils"
-VERSION="0.3.4"
+VERSION="0.4.2"
HOMEPAGE="http://cyberelk.net/tim/software/patchutils/"
-DOWNLOAD="http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.4.tar.xz"
-MD5SUM="ee95b5993d07ccdf27ca9f2cc4e6ffee"
+DOWNLOAD="http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.4.2.tar.xz"
+MD5SUM="3b4ab8bd84a31deb54f4a3fcac4db94f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""