summaryrefslogtreecommitdiff
path: root/source/xap/xfractint
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/xfractint')
-rw-r--r--source/xap/xfractint/slack-desc10
-rwxr-xr-xsource/xap/xfractint/xfractint.SlackBuild18
2 files changed, 18 insertions, 10 deletions
diff --git a/source/xap/xfractint/slack-desc b/source/xap/xfractint/slack-desc
index 0b8614fa..876eca71 100644
--- a/source/xap/xfractint/slack-desc
+++ b/source/xap/xfractint/slack-desc
@@ -1,18 +1,18 @@
# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
+# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
xfractint: xfractint (fractal generation program)
xfractint:
xfractint: Xfractint draws a wide variety of fractals. Xfractint is a port of the
-xfractint: DOS program Fractint.
+xfractint: DOS program Fractint.
xfractint:
xfractint: The primary original authors of Fractint are Bert Tyler, Timothy
-xfractint: Wegner, Mark Peterson, and Pieter Branderhorst. Fractint was ported
+xfractint: Wegner, Mark Peterson, and Pieter Branderhorst. Fractint was ported
xfractint: to X by Ken Shirriff.
xfractint:
xfractint:
diff --git a/source/xap/xfractint/xfractint.SlackBuild b/source/xap/xfractint/xfractint.SlackBuild
index a10db9cf..5f11c62e 100755
--- a/source/xap/xfractint/xfractint.SlackBuild
+++ b/source/xap/xfractint/xfractint.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2007, 2008, 2009, 2012 Patrick Volkerding, Sebeka, MN, USA
+# Copyright 2007, 2008, 2009, 2012, 2018 Patrick Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,15 +20,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xfractint
VERSION=${VERSION:-20.04p13}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;;
@@ -36,6 +37,14 @@ if [ -z "$ARCH" ]; then
export ARCH
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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
NUMJOBS=${NUMJOBS:-" -j7 "}
if [ "$ARCH" = "i386" ]; then
@@ -64,7 +73,6 @@ else
LIBDIRSUFFIX=""
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM}
rm -rf $PKG