diff options
Diffstat (limited to 'libraries/libscca/libscca.SlackBuild')
-rw-r--r-- | libraries/libscca/libscca.SlackBuild | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/libraries/libscca/libscca.SlackBuild b/libraries/libscca/libscca.SlackBuild index 926c8416c1..d9a2bf0e43 100644 --- a/libraries/libscca/libscca.SlackBuild +++ b/libraries/libscca/libscca.SlackBuild @@ -1,8 +1,8 @@ -#/bin/sh +#!/bin/bash # Slackware build script for libscca - -# Copyright 2014-2019 Barry J. Grundy (bgrundy<at>linuxleo.com) +# +# Copyright 2014-2023 Barry J. Grundy (bgrundy<at>linuxleo.com) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,14 +21,17 @@ # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Updated for version 20230716, Aug 2023 -# Updated to version 20181227, March 2019 +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libscca +VERSION=${VERSION:-20230716} STATUS=${STATUS:-alpha} -VERSION=${VERSION:-20181227} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +41,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} @@ -63,7 +73,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$STATUS-$VERSION.tar.gz +tar xvf $CWD/"$PRGNAM"-"$STATUS"-"$VERSION".tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -81,7 +91,7 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \ --localstatedir=/var \ --mandir=/usr/man \ --disable-static \ - --enable-python \ + --enable-python3 \ --build=$ARCH-slackware-linux make @@ -91,11 +101,13 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +cp -ar ChangeLog README $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 |