diff options
Diffstat (limited to 'development/eagle/eagle.SlackBuild')
-rw-r--r-- | development/eagle/eagle.SlackBuild | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/development/eagle/eagle.SlackBuild b/development/eagle/eagle.SlackBuild index c56329b476..d0e39ace1f 100644 --- a/development/eagle/eagle.SlackBuild +++ b/development/eagle/eagle.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for eagle (binary repackaging) # Copyright 2008,2015 Kyle Guinn <elyk03@gmail.com>, USA # Copyright 2010,2013 Niels Horn, Rio de Janeiro, RJ, Brazil -# Copyright 2016 Andrzej Telszewski, Banie +# Copyright 2024 Andrzej Telszewski, Koszalin # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,13 @@ # 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) + PRGNAM=eagle VERSION=${VERSION:-7.7.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=${ARCH:-$(uname -m)} case $ARCH in @@ -36,7 +39,14 @@ case $ARCH in *) echo "$ARCH is unsupported."; exit 1 ;; esac -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} @@ -113,4 +123,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |