diff options
Diffstat (limited to 'libraries/gloox/gloox.SlackBuild')
-rw-r--r-- | libraries/gloox/gloox.SlackBuild | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/libraries/gloox/gloox.SlackBuild b/libraries/gloox/gloox.SlackBuild index 9e1c7c98d8..c3bf75e293 100644 --- a/libraries/gloox/gloox.SlackBuild +++ b/libraries/gloox/gloox.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for gloox -# Updates since 2020 Copyright 2020 Tim dickson.tim@googlemail.com # Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org # Copyright 2010 Binh Nguyen <binhvng@gmail.com> +# Copyright 2020-2023 Tim Dickson dickson.tim@googlemail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,27 +27,40 @@ #note update to 1.0.24 breaks binary compatability but maintains source compatability. #ie. you'll need to recreate packages that use gloox. eg currently 0ad and licq +#update to 1.0.26 just fixes bugs etc. +#update to 1.0.27 fixes bugs. +#update to 1.0.28 fixes bugs. + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gloox -VERSION=${VERSION:-1.0.24} +VERSION=${VERSION:-1.0.28} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; 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} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -97,12 +110,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog INSTALL LICENSE README* TODO UPGRADING \ +cp -a AUTHORS COPYING ChangeLog LICENSE README* TODO UPGRADING \ $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 |