summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-18 13:32:18 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-18 13:32:18 -0400
commit30074a3b24b26de2b2ca583912e2c663461a879d (patch)
treef7fcc19c8e65ff05661ca5efd65a19a00bacbd73 /libraries
parentbdfbf64aaf9fd5804d8d750e722a9e6f60276302 (diff)
downloadslackbuilds-30074a3b24b26de2b2ca583912e2c663461a879d.tar.gz
libraries/liboauth: Strip lib, fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/liboauth/liboauth.SlackBuild42
1 files changed, 25 insertions, 17 deletions
diff --git a/libraries/liboauth/liboauth.SlackBuild b/libraries/liboauth/liboauth.SlackBuild
index 45ccfb421e..92fd04f629 100644
--- a/libraries/liboauth/liboauth.SlackBuild
+++ b/libraries/liboauth/liboauth.SlackBuild
@@ -23,42 +23,52 @@
# Changelog:
# v1.0.3 - redone script completely and send to SBo
+# 20220418 bkw: Modified by SlackBuilds.org, BUILD=5:
+# - strip library.
+# - fix PRINT_PACKAGE_NAME when ARCH not set in environment.
+# - i486 => i586.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=liboauth
VERSION=${VERSION:-1.0.3}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-NSS=${NSS:-no}
-
-if [ "$NSS" = yes ]; then
- OPTS="--enable-nss"
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
fi
-# 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
+NSS=${NSS:-no}
+
+if [ "$NSS" = yes ]; then
+ OPTS="--enable-nss"
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -m32 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -m32 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
@@ -83,9 +93,9 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# port to openssl-1.1.x
patch -p1 < $CWD/liboauth-1.0.3-openssl-1.1.0-2.patch
@@ -104,7 +114,8 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make DESTDIR=$PKG install
+make DESTDIR=$PKG install-strip
+gzip -9 $PKG/usr/man/man*/*
cd ..
@@ -112,9 +123,6 @@ mkdir -pv $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog README LICENSE.OpenSSL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-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
-
rm -f $PKG/usr/lib*/*.la
mkdir -pv $PKG/install