From d1246370e2f9cb50311c21c482126044e82962f3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 20 Nov 2020 20:08:10 +0000 Subject: network/tinyirc: Added (tiny IRC client) Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- network/tinyirc/README | 10 +++++ network/tinyirc/slack-desc | 19 +++++++++ network/tinyirc/tinyirc.SlackBuild | 87 ++++++++++++++++++++++++++++++++++++++ network/tinyirc/tinyirc.info | 12 ++++++ 4 files changed, 128 insertions(+) create mode 100644 network/tinyirc/README create mode 100644 network/tinyirc/slack-desc create mode 100644 network/tinyirc/tinyirc.SlackBuild create mode 100644 network/tinyirc/tinyirc.info (limited to 'network/tinyirc') diff --git a/network/tinyirc/README b/network/tinyirc/README new file mode 100644 index 0000000000000..47008dec66279 --- /dev/null +++ b/network/tinyirc/README @@ -0,0 +1,10 @@ +tinyirc (tiny IRC client) + +A very small, stripped down IRC client. It doesn't have most of the +more advanced commands in the ircII family of IRC clients, nor does +it have any color, but it works, and it's tiny. It's a bare bones +IRC client which has no editing capabilities other than backspace to +correct typing. + +This SlackBuild sets the default IRC server to chat.freenode.org, when +tinyirc is run without a server argument. diff --git a/network/tinyirc/slack-desc b/network/tinyirc/slack-desc new file mode 100644 index 0000000000000..51060e7c9b39f --- /dev/null +++ b/network/tinyirc/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------------------------------------------------------| +tinyirc: tinyirc (tiny IRC client) +tinyirc: +tinyirc: A very small, stripped down IRC client. It doesn't have most of the +tinyirc: more advanced commands in the ircII family of IRC clients, nor does it +tinyirc: have any color, but it works, and it's tiny. +tinyirc: +tinyirc: +tinyirc: +tinyirc: +tinyirc: +tinyirc: diff --git a/network/tinyirc/tinyirc.SlackBuild b/network/tinyirc/tinyirc.SlackBuild new file mode 100644 index 0000000000000..1abc53e2cf537 --- /dev/null +++ b/network/tinyirc/tinyirc.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh + +# Slackware build script for tinyirc + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=tinyirc +VERSION=${VERSION:-1.1_4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCVER=${VERSION%_*}.dfsg.1 +DEBVER=${VERSION#*_} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +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-$SRCVER +tar xvf $CWD/${PRGNAM}_$SRCVER.orig.tar.gz +cd $PRGNAM-$SRCVER +tar xvf $CWD/${PRGNAM}_$SRCVER-$DEBVER.debian.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 {} \+ + +for i in $( cat debian/patches/series ); do + patch -p1 < debian/patches/$i +done + +# Change the default server and port to something people actually use. +make $PRGNAM \ + SERVER="chat.freenode.net" \ + PORT=6667 \ + CFLAGS="$SLKCFLAGS -DPOSIX -DDO_CTCP -DCURSES -DHAVE_NCURSES" \ + LIBS=-lncurses \ + CC=${CC:-gcc} + +mkdir -p $PKG/usr/bin +install -m0755 -s $PRGNAM $PKG/usr/bin + +mkdir -p $PKG/usr/man/man1 +pod2man -cSlackBuilds.org -s1 -r1.1 -nTINYIRC debian/$PRGNAM.1.pod | \ + gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz + +# These are text files, not word docs, don't confuse desktop software. +rename .doc _doc.txt *.doc + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING announce *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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:-tgz} diff --git a/network/tinyirc/tinyirc.info b/network/tinyirc/tinyirc.info new file mode 100644 index 0000000000000..6325f142f8b44 --- /dev/null +++ b/network/tinyirc/tinyirc.info @@ -0,0 +1,12 @@ +PRGNAM="tinyirc" +VERSION="1.1_4" +HOMEPAGE="https://github.com/nlaredo/tinyirc/" +DOWNLOAD="http://deb.debian.org/debian/pool/main/t/tinyirc/tinyirc_1.1.dfsg.1.orig.tar.gz \ + http://deb.debian.org/debian/pool/main/t/tinyirc/tinyirc_1.1.dfsg.1-4.debian.tar.xz" +MD5SUM="b655596125a525d54f82dba6a96a84b7 \ + e2c989de71c7324bc86fb6aa45a4d8a3" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" -- cgit v1.2.3