diff options
Diffstat (limited to 'academic/biblesync/biblesync.SlackBuild')
-rw-r--r-- | academic/biblesync/biblesync.SlackBuild | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/academic/biblesync/biblesync.SlackBuild b/academic/biblesync/biblesync.SlackBuild index dfdd60598a..f3820b5f67 100644 --- a/academic/biblesync/biblesync.SlackBuild +++ b/academic/biblesync/biblesync.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for biblesync -# Copyright (c) 2015/2018 Tim Dickson <dickson.tim@googlemail.com> +# Copyright (c) 2015/2020 Tim Dickson <dickson.tim@googlemail.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are @@ -30,10 +30,13 @@ # (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=biblesync -VERSION=${VERSION:-2.0.1} +VERSION=${VERSION:-2.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -43,7 +46,14 @@ if [ -z "$ARCH" ]; then 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} @@ -91,23 +101,18 @@ make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# Compress man page -mkdir -p $PKG/usr/man/man7 -mv $PKG/usr/share/man/man7/$PRGNAM.7 $PKG/usr/man/man7/$PRGNAM.7 +mv $PKG/usr/share/man $PKG/usr/ gzip $PKG/usr/man/man7/$PRGNAM.7 #remove old man path rm -r $PKG/usr/share -#copy over docs etc. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh -#now to make the package 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 |