summaryrefslogtreecommitdiffstats
path: root/network/xaric/xaric.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/xaric/xaric.SlackBuild')
-rw-r--r--network/xaric/xaric.SlackBuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/network/xaric/xaric.SlackBuild b/network/xaric/xaric.SlackBuild
index 91d08506e0..4daad2c0a1 100644
--- a/network/xaric/xaric.SlackBuild
+++ b/network/xaric/xaric.SlackBuild
@@ -2,17 +2,22 @@
# Slackware build script for xaric
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210926 bkw:
+# - update for v0.13.9.
+# - minor man page fixes.
+# - change default server to irc.libera.chat. Nobody should ever connect
+# to the ruins of freenode, not even by accident.
# 20201122 bkw: BUILD=2, install icons to the right place.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xaric
-VERSION=${VERSION:-0.13.7}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.13.9}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -24,9 +29,6 @@ if [ -z "$ARCH" ]; then
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
@@ -62,10 +64,17 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
-sed -i 's,/usr/local,/usr,' $PRGNAM.1
+# Do not connect to that lunatic's network by default.
+sed -i 's,irc\.freenode\.net,irc.libera.chat,' defaults.h
-CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \
-CXXFLAGS="$SLKCFLAGS" \
+# Clean up man page a bit.
+sed -i -e 's,/usr/local,/usr,' \
+ -e '/^\\fB\\-b/s,^,.TP\n,' \
+ -e '/-L file/s,$, [\\fInickname\\fP] [\\fIirc\\-server\\fP ...],' \
+ -e 's,\<wont\>,won'\''t,' \
+ $PRGNAM.1
+
+CFLAGS="$SLKCFLAGS -fcommon" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \