aboutsummaryrefslogtreecommitdiff
path: root/network/irssi-python/irssi-python.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-12-08 14:33:20 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-10 08:37:38 +0700
commitddbfcd801f40b9379069039159aa2202b4c9a454 (patch)
treecd8446843d785c35245cbfddcd96f354b15f6d8c /network/irssi-python/irssi-python.SlackBuild
parentb3023951f9d29bdfcf9564f0ff8323e05bd553f6 (diff)
network/irssi-python: Updated for version test4_1.2.3.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/irssi-python/irssi-python.SlackBuild')
-rw-r--r--network/irssi-python/irssi-python.SlackBuild32
1 files changed, 22 insertions, 10 deletions
diff --git a/network/irssi-python/irssi-python.SlackBuild b/network/irssi-python/irssi-python.SlackBuild
index 3a20c91884acb..b4dc699de635c 100644
--- a/network/irssi-python/irssi-python.SlackBuild
+++ b/network/irssi-python/irssi-python.SlackBuild
@@ -11,18 +11,25 @@
# tarball. Unfortunately, the release tarball is un-buildable because it's
# missing various files. Also it's missing the entire doc/ directory.
+# VERSION is the irssi-python version, an underscore, and the irssi
+# version we're building it for.
+# Unfortunately we have to pick an irssi version to be the default,
+# because the DOWNLOAD links are static (can't have $VERSION or such in
+# them). This build will have to be updated any time Pat does an irssi
+# version update.
+
+# 20211208 bkw: update for vtest4_1.2.3.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=irssi-python
-VERSION=${VERSION:-test4}
+VERSION=${VERSION:-test4_1.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# Unfortunately we have to pick an irssi version to be the default,
-# because the DOWNLOAD links are static (can't have $VERSION or such in
-# them). 1.0.7 is the latest in patches/ at the time of this writing.
-IRSSI_VER="${IRSSI_VER:-1.0.7}"
+PYIRSSI_VER="$( echo $VERSION | cut -d_ -f1 )"
+IRSSI_VER="$( echo $VERSION | cut -d_ -f2 )"
# Alert the user (but don't stop the build) if $IRSSI_VER doesn't match
# the installed version of irssi.
@@ -45,9 +52,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
@@ -79,7 +83,7 @@ cd $TMP
rm -rf $PRGNAM
mkdir -p $PRGNAM
cd $PRGNAM
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$PYIRSSI_VER.tar.gz
tar xvf $CWD/irssi-$IRSSI_VER.tar.xz
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
@@ -104,7 +108,10 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
## --build=$ARCH-slackware-linux
## cd $TMP/$PRGNAM
-cd $PRGNAM-$VERSION
+cd $PRGNAM-$PYIRSSI_VER
+
+# patch comes from upstream git, commit 84e90f7d.
+patch -p1 < $CWD/abi18.diff
autoreconf -ivf -I.
@@ -124,11 +131,16 @@ make -C src constants
make
make install-strip DESTDIR=$PKG
+rm -f $PKG/usr/lib*/irssi/modules/*.la
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog NEWS README TODO classes.txt docs/*html \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# 20211208 bkw: it might be redundant to include the irssi version
+# in the slack-desc, since it's now in the actual version number, but
+# belt and suspenders...
mkdir -p $PKG/install
sed "s/@IRSSI_VER@/$IRSSI_VER/" $CWD/slack-desc > $PKG/install/slack-desc