network/tinyirc: Added (tiny IRC client)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
7eadebf7b4
commit
d1246370e2
|
@ -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.
|
|
@ -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:
|
|
@ -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}
|
|
@ -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"
|
Loading…
Reference in New Issue