diff options
Diffstat (limited to 'efi-sync/efi-sync.SlackBuild')
-rw-r--r-- | efi-sync/efi-sync.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/efi-sync/efi-sync.SlackBuild b/efi-sync/efi-sync.SlackBuild index 9c0ed64..b7bee98 100644 --- a/efi-sync/efi-sync.SlackBuild +++ b/efi-sync/efi-sync.SlackBuild @@ -1,9 +1,12 @@ -#!/bin/sh +#!/bin/bash + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=efi-sync VERSION=${VERSION:-0.2.0} BUILD=${BUILD:-1} TAG=${TAG:-_slackcoder} +PKGTYPE=${PKGTYPE:-txz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -13,7 +16,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -52,4 +59,4 @@ mkdir -p "$PKG/etc/rc.d" cp -R "$CWD/files/rc.efi-sync.new" "$PKG/etc/rc.d/" cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-0.2.0-$ARCH-$BUILD$TAG.${PKGTYPE:-txz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-0.2.0-$ARCH-$BUILD$TAG.$PKGTYPE |