aboutsummaryrefslogtreecommitdiff
path: root/network/ircII/ircII.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/ircII/ircII.SlackBuild')
-rw-r--r--network/ircII/ircII.SlackBuild58
1 files changed, 27 insertions, 31 deletions
diff --git a/network/ircII/ircII.SlackBuild b/network/ircII/ircII.SlackBuild
index ffc8dd1e1a..eed5c0e9aa 100644
--- a/network/ircII/ircII.SlackBuild
+++ b/network/ircII/ircII.SlackBuild
@@ -10,6 +10,13 @@
# Normally I prefer all-lowercase package names, but this just looks
# *wrong* as "ircii".
+# 20250115 bkw: note to self: the reason we're using a slackware.uk
+# URL is that the download site's URLs aren't stable. Current version
+# gets moved to old/ or just deleted, when a new one is released.
+
+# 20241126 bkw: update for v20240918. Depart from the Debian packaging;
+# their patches no longer apply.
+
# 20210913 bkw:
# - update for v20210616. The datestamp comes from the output of
# "ircII -v" (not the ChangeLog).
@@ -25,17 +32,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ircII
-VERSION=${VERSION:-20210616_2}
+VERSION=${VERSION:-20240918}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=${PRGNAM,,}
-SRCVER=${VERSION%_*}
-
-# We're applying Debian's patches against a slightly older version.
-DEBSRCVER=20210328
-DEBVER=${VERSION#*_}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -90,26 +92,19 @@ echo "=== DEFSRV='$DEFSRV', srvopt='$srvopt'"
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM-$SRCVER.tar.bz2
-cd $SRCNAM
-tar xvf $CWD/${SRCNAM}_$DEBSRCVER-$DEBVER.debian.tar.xz
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
+cd $SRCNAM-$VERSION
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 {} \+
-
-# apply most of Debian's patches, except:
-# - the absolute-path patch would move the nonexistent
-# /usr/share/irc/ircII.{motd,servers} to /etc/irc/{motd,servers}.
-# Since we don't ship either file, and their paths are settable in
-# ~/.ircrc anyway, I see no use for this patch.
-# - the Add-ioption patch is meant to fix some compile warnings that we
-# don't actually get. Plus, it won't apply cleanly.
-rm -f debian/patches/0004-absolute-path* \
- debian/patches/0003-Add-ioption*
-
-for i in $( cat debian/patches/series ); do
- [ -e debian/patches/$i ] && patch -p1 < debian/patches/$i
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+
+# 20241126 bkw: Debian's patches no longer apply, except the reverse
+# color one. spelling.diff is based on their old spelling patch.
+# manpage.diff is my own typo/grammar/etc fixes. minor nitpicks, maybe.
+for i in $CWD/patches/*; do
+ echo "===> $i"
+ patch -p1 < $i
done
# fix warnings caused by missing includes.
@@ -119,13 +114,13 @@ sed -i -e '1i#include <curses.h>' \
# do not compile with termcap. there's no --disable-termcap or similar,
# have to do surgery.
+# 20241126 bkw: also, upstream thinks it needs a newer autoconf than
+# we have, but actually it's fine with 2.69.
sed -i -e '/AC_CHECK_LIB(termcap/s,termcap,ncurses,g' \
-e 's,termcap\.h ,,' \
+ -e '/AC_PREREQ/s,71,69,' \
configure.in
-# my own typo/grammar/etc fixes. minor nitpicks, maybe.
-patch -p1 < $CWD/manpage.diff
-
autoreconf -ifv
# is there a disadvantage to enabling emacs meta keys?
@@ -172,10 +167,11 @@ done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
perl doc/help2html.pl $PKG/usr/share/irc/help $PKG/usr/doc/$PRGNAM-$VERSION/html
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
rm -f doc/*.1 doc/*.spec* doc/*.orig doc/*.pl
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog NEWS README doc/* contrib $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKGDOC
+cp -a ChangeLog NEWS README doc/* contrib $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
sed -e "s,@para_opt@,$para_opt," \