diff options
Diffstat (limited to 'system/spman/spman.SlackBuild')
-rw-r--r-- | system/spman/spman.SlackBuild | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/system/spman/spman.SlackBuild b/system/spman/spman.SlackBuild index 0a5d50e02c..eeeed1bef8 100644 --- a/system/spman/spman.SlackBuild +++ b/system/spman/spman.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for spman # @@ -27,10 +27,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=spman -VERSION=${VERSION:-2.2.2} +VERSION=${VERSION:-2.2.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,7 +43,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} @@ -78,7 +88,7 @@ find -L . \ mkdir -p $PKG/usr/sbin install --mode=755 src/$PRGNAM $PKG/usr/sbin -# etc/{spman,bash_completion.d} +# etc/spman cp -R etc $PKG ( cd $PKG/etc/$PRGNAM || exit 1 @@ -88,7 +98,11 @@ cp -R etc $PKG mv $CONFIG $CONFIG.new done ) -chmod 755 $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh + +mkdir -p $PKG/usr/share/bash-completion/completions +mv $PKG/etc/bash_completion.d/$PRGNAM-bash-complition.sh \ + $PKG/usr/share/bash-completion/completions/$PRGNAM +rm -rf $PKG/etc/bash_completion.d # python libs PY3VER="$(python3 -c 'import sys; ver = sys.version_info; \ @@ -117,4 +131,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh # 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 |