diff options
Diffstat (limited to 'desktop/kupfer/kupfer.SlackBuild')
-rw-r--r-- | desktop/kupfer/kupfer.SlackBuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/desktop/kupfer/kupfer.SlackBuild b/desktop/kupfer/kupfer.SlackBuild index 8c8c0f2317..2aba2d50ea 100644 --- a/desktop/kupfer/kupfer.SlackBuild +++ b/desktop/kupfer/kupfer.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for kupfer -# Copyright 2018 Leonardo Citrolo, Italy +# Copyright 2018-2020 Leonardo Citrolo, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,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=kupfer -VERSION=${VERSION:-v319} +VERSION=${VERSION:-v320} 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} @@ -40,8 +50,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +mkdir $PRGNAM-$VERSION cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -51,12 +62,13 @@ find -L . \ ./waf configure \ --prefix=/usr \ - --mandir=/usr/man + --mandir=/usr/man \ + --no-update-mime ./waf build ./waf install --destdir=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html -cp -a README.rst \ +cp -a COPYING README.rst \ $PKG/usr/doc/$PRGNAM-$VERSION cd Documentation sed -i 's/rst2html5 /rst2html5.py /' Makefile @@ -69,4 +81,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |