aboutsummaryrefslogtreecommitdiff
path: root/network/irssi-icb
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-09-23 09:08:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-23 09:08:45 +0700
commitd085e2302a1305d4661939ad34928ae84447d7ea (patch)
tree477e6eaf8fa8ea02c4b703aafa19e9c6ec6a9579 /network/irssi-icb
parent3a3f6d4988752b0b73615a2b942822439df7050d (diff)
network/irssi-icb: Added (irssi plugin for ICB).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/irssi-icb')
-rw-r--r--network/irssi-icb/README9
-rw-r--r--network/irssi-icb/git2tarxz.sh48
-rw-r--r--network/irssi-icb/irssi-icb.SlackBuild99
-rw-r--r--network/irssi-icb/irssi-icb.info12
-rw-r--r--network/irssi-icb/slack-desc19
5 files changed, 187 insertions, 0 deletions
diff --git a/network/irssi-icb/README b/network/irssi-icb/README
new file mode 100644
index 0000000000000..66d656a9376cb
--- /dev/null
+++ b/network/irssi-icb/README
@@ -0,0 +1,9 @@
+irssi-icb (irssi plugin for ICB)
+
+ICB (International CB) is a teleconferencing system that allows
+Internet users to participate in realtime online discussions (similar
+to IRC). irssi-icb is a plugin for the irssi IRC client that allows it
+to chat on the ICB network.
+
+See /usr/doc/irssi-icb-*/README for directions on how to load the
+module into irssi and connect to an ICB server.
diff --git a/network/irssi-icb/git2tarxz.sh b/network/irssi-icb/git2tarxz.sh
new file mode 100644
index 0000000000000..9f44fbdefc038
--- /dev/null
+++ b/network/irssi-icb/git2tarxz.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# Create source tarball from git repo, with generated version
+# number.
+
+# Note that this script doesn't need to be run as root. It does
+# need to be able to write to the current directory it's run from.
+
+# Takes one optional argument, which is the commit or tag to create
+# a tarball of. With no arg, HEAD is used.
+
+# 20230919 bkw: contains irssi-icb specific code, don't use as a template.
+
+PRGNAM=irssi-icb
+CLONE_URL=https://github.com/landryb/irssi-icb
+
+set -e
+
+GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX )
+rm -rf $GITDIR
+git clone $CLONE_URL $GITDIR
+
+CWD="$( pwd )"
+cd $GITDIR
+
+if [ "$1" != "" ]; then
+ git reset --hard "$1" || exit 1
+fi
+
+GIT_SHA=$( git rev-parse --short HEAD )
+
+DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 )
+
+UPSTREAM_VER="$( grep "^AC_INIT" configure.ac | cut -d'[' -f3 |cut -d']' -f1 )"
+
+VERSION=$UPSTREAM_VER+${DATE}_${GIT_SHA}
+
+rm -rf .git
+find . -name .gitignore -print0 | xargs -0 rm -f
+
+cd "$CWD"
+rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
+mv $GITDIR $PRGNAM-$VERSION
+tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION
+
+echo
+echo "Created tarball: $PRGNAM-$VERSION.tar.xz"
+echo "VERSION=$VERSION"
diff --git a/network/irssi-icb/irssi-icb.SlackBuild b/network/irssi-icb/irssi-icb.SlackBuild
new file mode 100644
index 0000000000000..f945be5298237
--- /dev/null
+++ b/network/irssi-icb/irssi-icb.SlackBuild
@@ -0,0 +1,99 @@
+#!/bin/bash
+
+# Slackware build script for irssi-icb
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# There's 3 forks of this on github (or, one original and two forks):
+# https://github.com/mglocker/irssi-icb - updated 2016
+# https://github.com/jperkin/irssi-icb - updated 2012
+# https://github.com/landryb/irssi-icb - updated 2022
+# The landryb fork is the only one that will work with irssi-1.4.x,
+# so that's what this build packages.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=irssi-icb
+VERSION=${VERSION:-0.17+20220616_4fd6aff}
+IRSSIVER=${IRSSIVER:-1.4.4}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+cd $PRGNAM-$VERSION
+tar xvf $CWD/irssi-$IRSSIVER.tar.xz
+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 {} +
+
+sh autorun.sh
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --with-irssi=$(pwd)/irssi-$IRSSIVER \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+# sed stuff below removes the compile/install instructions from README,
+# so all that's left is config instructions.
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS COPYING $PKGDOC
+sed -n '/^load in/,$p' README > $PKGDOC/README
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/irssi-icb/irssi-icb.info b/network/irssi-icb/irssi-icb.info
new file mode 100644
index 0000000000000..f8d5ebacad6e2
--- /dev/null
+++ b/network/irssi-icb/irssi-icb.info
@@ -0,0 +1,12 @@
+PRGNAM="irssi-icb"
+VERSION="0.17+20220616_4fd6aff"
+HOMEPAGE="https://github.com/landryb/irssi-icb"
+DOWNLOAD="https://slackware.uk/~urchlay/src/irssi-icb-0.17+20220616_4fd6aff.tar.xz \
+ https://github.com/irssi/irssi/releases/download/1.4.4/irssi-1.4.4.tar.xz"
+MD5SUM="9da79e53c48f606831e5ebc2fee7434a \
+ c1787858ede8d875be5e2ddb8c2bc95e"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/network/irssi-icb/slack-desc b/network/irssi-icb/slack-desc
new file mode 100644
index 0000000000000..0223c6fe6a9a0
--- /dev/null
+++ b/network/irssi-icb/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+irssi-icb: irssi-icb (irssi plugin for ICB)
+irssi-icb:
+irssi-icb: ICB (International CB) is a teleconferencing system that allows
+irssi-icb: Internet users to participate in realtime online discussions (similar
+irssi-icb: to IRC). irssi-icb is a plugin for the irssi IRC client that allows it
+irssi-icb: to chat on the ICB network.
+irssi-icb:
+irssi-icb:
+irssi-icb:
+irssi-icb:
+irssi-icb: