diff options
author | B. Watson <yalhcru@gmail.com> | 2020-11-20 20:08:10 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-11-22 01:14:22 +0700 |
commit | d1246370e2f9cb50311c21c482126044e82962f3 (patch) | |
tree | f5748dfbec18014fc1e797e66a92177e93fb19cb /network/tinyirc | |
parent | 7eadebf7b4a7abba39714523644ce7886b73d5c0 (diff) | |
download | slackbuilds-d1246370e2f9cb50311c21c482126044e82962f3.tar.gz |
network/tinyirc: Added (tiny IRC client)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/tinyirc')
-rw-r--r-- | network/tinyirc/README | 10 | ||||
-rw-r--r-- | network/tinyirc/slack-desc | 19 | ||||
-rw-r--r-- | network/tinyirc/tinyirc.SlackBuild | 87 | ||||
-rw-r--r-- | network/tinyirc/tinyirc.info | 12 |
4 files changed, 128 insertions, 0 deletions
diff --git a/network/tinyirc/README b/network/tinyirc/README new file mode 100644 index 0000000000..47008dec66 --- /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 0000000000..51060e7c9b --- /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 0000000000..1abc53e2cf --- /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 0000000000..6325f142f8 --- /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" |