summaryrefslogtreecommitdiffstats
path: root/system/unrtf
diff options
context:
space:
mode:
Diffstat (limited to 'system/unrtf')
-rw-r--r--system/unrtf/unrtf.SlackBuild24
-rw-r--r--system/unrtf/unrtf.info8
2 files changed, 21 insertions, 11 deletions
diff --git a/system/unrtf/unrtf.SlackBuild b/system/unrtf/unrtf.SlackBuild
index d31ef3d7d1..ba784a1c67 100644
--- a/system/unrtf/unrtf.SlackBuild
+++ b/system/unrtf/unrtf.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for unrtf
@@ -23,26 +23,36 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=unrtf
-VERSION=${VERSION:-0.21.9}
+VERSION=${VERSION:-0.21.10}
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" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -104,4 +114,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/system/unrtf/unrtf.info b/system/unrtf/unrtf.info
index eafeac2516..9f6a7e1395 100644
--- a/system/unrtf/unrtf.info
+++ b/system/unrtf/unrtf.info
@@ -1,8 +1,8 @@
PRGNAM="unrtf"
-VERSION="0.21.9"
-HOMEPAGE="http://www.gnu.org/software/unrtf/unrtf.html"
-DOWNLOAD="http://www.gnu.org/software/unrtf/unrtf-0.21.9.tar.gz"
-MD5SUM="e2724018429d7710f2c72771705f6b37"
+VERSION="0.21.10"
+HOMEPAGE="https://www.gnu.org/software/unrtf/unrtf.html"
+DOWNLOAD="https://ftp.gnu.org/gnu/unrtf/unrtf-0.21.10.tar.gz"
+MD5SUM="cbd1ae563240e383d0773bb049887d3f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""