diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-26 18:29:08 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2022-03-26 18:29:08 +0100 |
commit | ce5608c4da988dd03f4b5e2524e049a3a63d5f89 (patch) | |
tree | 7e4a027a437a4b2c63fbdc564310c7921607fc91 | |
parent | 78bb7dcfc94cab021bcef9a629c7e68aa0c56ec1 (diff) |
network/bitchx: Added (IRC client).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | network/bitchx/BitchX.desktop | 10 | ||||
-rw-r--r-- | network/bitchx/README | 15 | ||||
-rw-r--r-- | network/bitchx/bitchx.SlackBuild | 119 | ||||
-rw-r--r-- | network/bitchx/bitchx.info | 10 | ||||
-rw-r--r-- | network/bitchx/doinst.sh | 9 | ||||
-rw-r--r-- | network/bitchx/slack-desc | 19 |
6 files changed, 182 insertions, 0 deletions
diff --git a/network/bitchx/BitchX.desktop b/network/bitchx/BitchX.desktop new file mode 100644 index 0000000000000..3aaf1634cd37a --- /dev/null +++ b/network/bitchx/BitchX.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=BitchX +GenericName=IRC Client +Comment=The bitch of IRC! +Icon=BitchX +Exec=BitchX +Terminal=true +Type=Application +Categories=Network;IRCClient; diff --git a/network/bitchx/README b/network/bitchx/README new file mode 100644 index 0000000000000..cbf0731bdbf01 --- /dev/null +++ b/network/bitchx/README @@ -0,0 +1,15 @@ +bitchx (IRC client) + +BitchX is a free software text-based IRC (Internet Relay Chat) +client for UNIX-like systems, originally based on ircII and heavily +influenced by EPIC. + +The original BitchX hasn't been updated since 2014. This build is for +a fork by TheApacheCats that has many bugfixes and enhancements, and +was last updated in 2019. + +The executable and man page are called BitchX (not bitchx). + +Optional: BitchX makes use of MS-DOS-style (codepage 437) graphics for +its title screen. You can install misc/cp437 and run "cp347 BitchX" +to see the title screen as it was intended. diff --git a/network/bitchx/bitchx.SlackBuild b/network/bitchx/bitchx.SlackBuild new file mode 100644 index 0000000000000..c32a465ad9429 --- /dev/null +++ b/network/bitchx/bitchx.SlackBuild @@ -0,0 +1,119 @@ +#!/bin/bash + +# Slackware build script for bitchx + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20220315 bkw: the old BitchX was removed a few weeks ago because it +# won't compile on Slackware 15.0. This build is for a fork that's a +# lot more up to date. I asked the maintainer of the old package if he +# was OK with me submitting a new bitchx, and he gave his blessing. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=bitchx +VERSION=${VERSION:-1.2.1_2019} +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 + +SRCNAM=BitchX +SRCVER=${VERSION/_/-} + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$SRCVER +tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz +cd $SRCNAM-$SRCVER +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 {} \+ + +# 20220301 bkw: --docdir is unrecognized. +# The SHLIB_LD and LDFLAGS build everything stripped. + +SHLIB_LD="gcc -shared -Wl,-s" \ +LDFLAGS="-Wl,-s" \ +CFLAGS="$SLKCFLAGS -fcommon" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --without-gtk \ + --with-ssl \ + --with-plugins \ + --enable-ipv6 \ + --enable-tcl \ + --disable-sound \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +# 20220302 bkw: man page is installed bzipped, works but it's weird. +bunzip2 ${M:=$PKG/usr/man/man1/$SRCNAM.1}.bz2 +gzip -9 $M + +# 20220302 bkw: .desktop file by SlackBuild author. Sure, why not? +mkdir -p ${A:=$PKG/usr/share/applications} +cat $CWD/$SRCNAM.desktop > $A/$SRCNAM.desktop + +# 20220302 bkw: since we have a .desktop, we need icons. +mkdir -p ${I:=$PKG/usr/share/icons/hicolor}/{32x32,64x64}/apps +convert -background none -extent 64x64 -gravity center \ + doc/misc/bitch52.xpm $I/64x64/apps/$SRCNAM.png +convert -background none doc/$SRCNAM.xpm $I/32x32/apps/$SRCNAM.png + +mkdir -p ${P:=$PKG/usr/share/pixmaps} +ln -s ../icons/hicolor/64x64/apps/$SRCNAM.png $P + +mkdir -p ${PKGDOC:=$PKG/usr/doc/$PRGNAM-$VERSION} +rm -f doc/$SRCNAM.1 # man page installed elsewhere +cp -a COPYRIGHT Changelog IPv6-support README doc $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +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 diff --git a/network/bitchx/bitchx.info b/network/bitchx/bitchx.info new file mode 100644 index 0000000000000..8426aff3e7f8a --- /dev/null +++ b/network/bitchx/bitchx.info @@ -0,0 +1,10 @@ +PRGNAM="bitchx" +VERSION="1.2.1_2019" +HOMEPAGE="https://github.com/TheApacheCats/BitchX/" +DOWNLOAD="https://github.com/TheApacheCats/BitchX/archive/1.2.1-2019/BitchX-1.2.1-2019.tar.gz" +MD5SUM="12157f123551b55364fa8a144e5b6a9c" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/network/bitchx/doinst.sh b/network/bitchx/doinst.sh new file mode 100644 index 0000000000000..3e5691a052b5b --- /dev/null +++ b/network/bitchx/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/network/bitchx/slack-desc b/network/bitchx/slack-desc new file mode 100644 index 0000000000000..746dab1dc3f18 --- /dev/null +++ b/network/bitchx/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------------------------------------------------------| +bitchx: bitchx (IRC client) +bitchx: +bitchx: BitchX is a free software text-based IRC (Internet Relay Chat) +bitchx: client for UNIX-like systems, originally based on ircII and heavily +bitchx: influenced by EPIC. +bitchx: +bitchx: +bitchx: +bitchx: +bitchx: +bitchx: |