summaryrefslogtreecommitdiffstats
path: root/system/rhash/rhash.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/rhash/rhash.SlackBuild')
-rw-r--r--system/rhash/rhash.SlackBuild50
1 files changed, 30 insertions, 20 deletions
diff --git a/system/rhash/rhash.SlackBuild b/system/rhash/rhash.SlackBuild
index a076213f53..1bd0e38990 100644
--- a/system/rhash/rhash.SlackBuild
+++ b/system/rhash/rhash.SlackBuild
@@ -1,6 +1,7 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright (c) 2014, Симонъ–Севаръ Болокановъ, Bulgaria <sbolokanov@abv.bg>
+# Copyright 2014-2021 S. S. Bolokanar, Bulgaria <bolokanar@bulgars.org>
+# С. С. Болоканаръ, България
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,9 +21,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Written by: Симонъ Болокановъ <sbolokanov@abv.bg>
-# Date: Unknown
-
# Changelog:
# v1.3.3 - Re-done the sript and send it to SBo
# 27.2.2015 - no headers!? - thanks to Marcel Saegebarth for spotting this
@@ -31,16 +29,23 @@
# 10.3.2015 - made quiet the clean up, script actually broke on last update…
# 3 Мартъ 1878 – възстановѧване на Българиѧ, 3 Мартъ 1918 (40 г. по–късно) – победа надъ Русиѧ
+# 20220210 bkw: Modified by SlackBuilds.org, fix parallel builds.
+# 20220222 bkw: Modified by SlackBuilds.org, always build static lib, BUILD=2.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=rhash
-VERSION=${VERSION:-1.4.0}
+VERSION=${VERSION:-1.4.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# Shall we compile with OpenSSL support?
OPENSSL=${OPENSSL:-yes}
# Shall we install static libraries?
-STATICLIB=${STATICLIB:-no}
+# 20220222 bkw: yes, because lgogdownloader requires it.
+STATICLIB=yes
if [ "$OPENSSL" != "yes" ]; then
ENABLEOSSL="--disable-openssl"
@@ -50,22 +55,28 @@ if [ "$STATICLIB" = "yes" ]; then
ENABLESTATICLIB="--enable-lib-static"
fi
-CWD=$(pwd)
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 [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -89,15 +100,9 @@ cd RHash-$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 {} \;
-
-if [ "$STATICLIB" = "yes" ]; then
- echo "+=============================+"
- echo "| STATIC LIBRARY ACTIVATED!!! |"
- echo "+=============================+"
-fi
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# enable-gettext - internationalization support
./configure \
@@ -111,7 +116,12 @@ fi
--extra-cflags="${SLKCFLAGS} ${OPTCFLAGS}" \
--extra-ldflags="${OPTLDFLAGS}"
+# 20220210 bkw: trying to do the build and install in one go
+# with a single "make install" command breaks parallel builds
+# and only saves 4 keystrokes for the script author. bad tradeoff.
+make
make DESTDIR=$PKG install install-gmo install-lib-so-link
+
# Don't clobber the default config
mv -v $PKG/etc/rhashrc $PKG/etc/rhashrc.new
@@ -128,4 +138,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
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