diff options
Diffstat (limited to 'libraries/libqb/libqb.SlackBuild')
-rw-r--r-- | libraries/libqb/libqb.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/libraries/libqb/libqb.SlackBuild b/libraries/libqb/libqb.SlackBuild index 5f74f868f1..a2521f2c08 100644 --- a/libraries/libqb/libqb.SlackBuild +++ b/libraries/libqb/libqb.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for libqb -# Copyright 2019 Jan F. Chadima <jfch@jagda.eu> +# Copyright 2019-2020 Jan F. Chadima <jfch@jagda.eu> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # 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=libqb -VERSION=${VERSION:-1.0.5} -BUILD=${BUILD:-1} +VERSION=${VERSION:-2.0.0} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,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} @@ -86,6 +96,9 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +#remove unnecessary stuff +rm -rf $PKG/usr/bin $PKG/usr/man/man1 + 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 @@ -98,8 +111,10 @@ cp -a \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -f $PKG/usr/lib*/*.la + 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 |