diff options
Diffstat (limited to 'network/xaric/xaric.SlackBuild')
-rw-r--r-- | network/xaric/xaric.SlackBuild | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/network/xaric/xaric.SlackBuild b/network/xaric/xaric.SlackBuild index 7172934bd3..4daad2c0a1 100644 --- a/network/xaric/xaric.SlackBuild +++ b/network/xaric/xaric.SlackBuild @@ -1,15 +1,25 @@ -#!/bin/sh +#!/bin/bash # 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} +VERSION=${VERSION:-0.13.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -19,7 +29,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -50,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 + +# 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" \ -CXXFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -fcommon" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -74,7 +95,7 @@ mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cp -a $PRGNAM.xpm $PKG/usr/share/pixmaps for i in 16 32 48; do - dir=$PKG/usr/share/icons/${i}x${i}/apps + dir=$PKG/usr/share/icons/hicolor/${i}x${i}/apps mkdir -p $dir convert $PRGNAM.xpm -resize ${i}x${i}! $dir/$PRGNAM.png done @@ -92,4 +113,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |