diff options
Diffstat (limited to 'desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild')
-rw-r--r-- | desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild b/desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild index 8046fdd2e6..f1c4bb41cd 100644 --- a/desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild +++ b/desktop/thunar-custom-actions/thunar-custom-actions.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for thunar-custom-actions +# Maintained by Ozan Türkyılmaz, Türkiye # Copyright 2019 Leonardo Citrolo, Italy # All rights reserved. # @@ -22,14 +23,24 @@ # 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=thunar-custom-actions VERSION=${VERSION:-0.0.22} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -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} @@ -61,4 +72,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 |