diff options
Diffstat (limited to 'source/tcl/tk/tk.SlackBuild')
-rwxr-xr-x | source/tcl/tk/tk.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/source/tcl/tk/tk.SlackBuild b/source/tcl/tk/tk.SlackBuild index 9e7da916..eb14a087 100755 --- a/source/tcl/tk/tk.SlackBuild +++ b/source/tcl/tk/tk.SlackBuild @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -# Copyright 2008, 2009, 2012, 2013, 2016 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2012, 2013, 2016, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -20,8 +20,10 @@ # 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) -VERSION=${VERSION:-8.6.5} +PKGNAM=tk +VERSION=${VERSION:-8.6.8} # See also version number 8.6 in the symlinks below...) BUILD=${BUILD:-2} @@ -35,6 +37,14 @@ if [ -z "$ARCH" ]; then 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + NUMJOBS=${NUMJOBS:-" -j7 "} if [ "$ARCH" = "i586" ]; then @@ -54,7 +64,6 @@ elif [ "$ARCH" = "armel" ]; then LIBDIRSUFFIX="" fi -CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-tk @@ -62,7 +71,7 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf tk$VERSION -tar xvf $CWD/tk$VERSION-src.tar.?z* || exit 1 +tar xvf $CWD/tk$VERSION-src.tar.?z || exit 1 cd tk$VERSION || exit 1 sed -i -e "s#^TK_LIBRARY='\$(prefix)/lib/#TK_LIBRARY='\$(libdir)/#" \ unix/configure @@ -87,7 +96,7 @@ CFLAGS="$SLKCFLAGS" \ --enable-64bit \ --mandir=/usr/man \ --enable-man-symlinks \ - --build=$ARCH-slackware-linux + --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 |