diff options
Diffstat (limited to 'misc/keychain/keychain.SlackBuild')
-rw-r--r-- | misc/keychain/keychain.SlackBuild | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/misc/keychain/keychain.SlackBuild b/misc/keychain/keychain.SlackBuild index b5152a3319..a4227467e1 100644 --- a/misc/keychain/keychain.SlackBuild +++ b/misc/keychain/keychain.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for keychain # Copyright 2010 Grigorios Bouzakis <grbzks@xsmail.com> -# Copyright 2014-2016 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2014-2020 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -20,20 +20,30 @@ # (INCLUDING NEGLIGENCE OR 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=keychain -VERSION=${VERSION:-2.8.3} +VERSION=${VERSION:-2.8.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -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} @@ -44,7 +54,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -58,7 +68,7 @@ sed -i 's|:/usr/ucb||' $PRGNAM mkdir -p $PKG/usr/bin $PKG/usr/man/man1 install -m 755 $PRGNAM $PKG/usr/bin -cat keychain.1 > $PKG/usr/man/man1/keychain.1 +install -m 644 keychain.1 $PKG/usr/man/man1/keychain.1 find $PKG/usr/man -type f -exec gzip -9 {} \; @@ -70,4 +80,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 |