diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-13 14:14:05 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-22 08:23:01 +0700 |
commit | ac15ff9befdc1efd5089cc30431eb07635400dab (patch) | |
tree | 22142e5e439f872888e9eba8c478034a1e70f5da /network | |
parent | e538310f01461928c37c7f0d4888956271579f26 (diff) | |
download | slackbuilds-ac15ff9befdc1efd5089cc30431eb07635400dab.tar.gz |
network/kirc: Added (tiny IRC client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/kirc/README | 3 | ||||
-rw-r--r-- | network/kirc/kirc.SlackBuild | 76 | ||||
-rw-r--r-- | network/kirc/kirc.info | 10 | ||||
-rw-r--r-- | network/kirc/slack-desc | 19 |
4 files changed, 108 insertions, 0 deletions
diff --git a/network/kirc/README b/network/kirc/README new file mode 100644 index 0000000000..385e39d23a --- /dev/null +++ b/network/kirc/README @@ -0,0 +1,3 @@ +kirc (tiny IRC client) + +kirc is "KISS for IRC", a tiny IRC client written in POSIX C99. diff --git a/network/kirc/kirc.SlackBuild b/network/kirc/kirc.SlackBuild new file mode 100644 index 0000000000..34ceb8d055 --- /dev/null +++ b/network/kirc/kirc.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/bash + +# Slackware build script for kirc + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=kirc +VERSION=${VERSION:-0.2.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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.gz +cd $PRGNAM-$VERSION +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 {} \+ + +# fix the man page header. +sed -i \ + "1s, [^ ]*\$, $(date +%Y-%m-%d) $PRGNAM-$VERSION SlackBuilds.org," \ + $PRGNAM.1 + +make CFLAGS="$SLKCFLAGS -Wl,-s" +make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man +gzip -9 $PKG/usr/man/man?/*.? + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README $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/kirc/kirc.info b/network/kirc/kirc.info new file mode 100644 index 0000000000..9080e567fb --- /dev/null +++ b/network/kirc/kirc.info @@ -0,0 +1,10 @@ +PRGNAM="kirc" +VERSION="0.2.8" +HOMEPAGE="https://github.com/mcpcpc/kirc" +DOWNLOAD="https://github.com/mcpcpc/kirc/archive/0.2.8/kirc-0.2.8.tar.gz" +MD5SUM="019e4aa2492e2ff035a9fbe1f42b4c56" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/network/kirc/slack-desc b/network/kirc/slack-desc new file mode 100644 index 0000000000..6b955db8bb --- /dev/null +++ b/network/kirc/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------------------------------------------------------| +kirc: kirc (tiny IRC client) +kirc: +kirc: kirc is "KISS for IRC", a tiny IRC client written in POSIX C99. +kirc: +kirc: +kirc: +kirc: +kirc: +kirc: +kirc: +kirc: |