aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-11-14 06:16:28 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-14 17:16:42 +0700
commit51bb6caf77583ed35bbd564f5669a51754983bed (patch)
tree7e927c3867c18bd1c04f158682c4e68415776735
parente6072056e771bcf271f7bb67ff6d3e2a3bdefabf (diff)
system/colorize: Added (colorize text on terminal)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/colorize/README6
-rw-r--r--system/colorize/colorize.SlackBuild66
-rw-r--r--system/colorize/colorize.info10
-rw-r--r--system/colorize/slack-desc19
4 files changed, 101 insertions, 0 deletions
diff --git a/system/colorize/README b/system/colorize/README
new file mode 100644
index 000000000000..51221064f1f7
--- /dev/null
+++ b/system/colorize/README
@@ -0,0 +1,6 @@
+colorize (colorize text on terminal)
+
+Colorize aims at being a small, independent and handy command-line
+text colorizing tool. It emits ANSI escape sequences in order to color
+lines of text; also, sequences emitted by colorize or foreign programs
+may be cleared.
diff --git a/system/colorize/colorize.SlackBuild b/system/colorize/colorize.SlackBuild
new file mode 100644
index 000000000000..0bb6b9d8b4e3
--- /dev/null
+++ b/system/colorize/colorize.SlackBuild
@@ -0,0 +1,66 @@
+#!/bin/sh
+
+# Slackware build script for colorize
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=colorize
+VERSION=${VERSION:-0.65}
+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
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+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 {} \+
+
+make CFLAGS="$SLKCFLAGS"
+
+# disable tests by default
+[ "${CHECK:-no}" = "yes" ] && make check
+
+mkdir -p $PKG/usr/bin $PKG/usr/man/man1
+install -s -m0755 $PRGNAM $PKG/usr/bin
+gzip -9c < $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS* COPYING* HACKING* README* TODO* $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/system/colorize/colorize.info b/system/colorize/colorize.info
new file mode 100644
index 000000000000..2643a9c7fe7c
--- /dev/null
+++ b/system/colorize/colorize.info
@@ -0,0 +1,10 @@
+PRGNAM="colorize"
+VERSION="0.65"
+HOMEPAGE="http://cgit.refcnt.org/colorize.git/tree/README"
+DOWNLOAD="http://cgit.refcnt.org/colorize.git/snapshot/colorize-0.65.tar.bz2"
+MD5SUM="4ebbe5fd92ac1f69ce73ba4d6a0cbc78"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/system/colorize/slack-desc b/system/colorize/slack-desc
new file mode 100644
index 000000000000..276034c4269b
--- /dev/null
+++ b/system/colorize/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------------------------------------------------------|
+colorize: colorize (colorize text on terminal)
+colorize:
+colorize: Colorize aims at being a small, independent and handy command-line
+colorize: text colorizing tool. It emits ANSI escape sequences in order to color
+colorize: lines of text; also, sequences emitted by colorize or foreign programs
+colorize: may be cleared.
+colorize:
+colorize:
+colorize:
+colorize:
+colorize: