aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/cmatrix/README7
-rw-r--r--desktop/cmatrix/cmatrix.SlackBuild71
-rw-r--r--desktop/cmatrix/cmatrix.info8
-rw-r--r--desktop/cmatrix/doinst.sh13
-rw-r--r--desktop/cmatrix/slack-desc19
5 files changed, 118 insertions, 0 deletions
diff --git a/desktop/cmatrix/README b/desktop/cmatrix/README
new file mode 100644
index 0000000000000..fc227d6a047f0
--- /dev/null
+++ b/desktop/cmatrix/README
@@ -0,0 +1,7 @@
+cmatrix - console Matrix screensaver
+
+cmatrix creates a ncurses-based scrolling Matrix screen. The speed, color,
+scroll mode, and more can be adjusted. An optional custom Matrix font is
+included.
+
+This is an excellent alternative to the stock worms and rain programs.
diff --git a/desktop/cmatrix/cmatrix.SlackBuild b/desktop/cmatrix/cmatrix.SlackBuild
new file mode 100644
index 0000000000000..1efb113f6049c
--- /dev/null
+++ b/desktop/cmatrix/cmatrix.SlackBuild
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+# Slackware build script for cmatrix
+# Written by Phillip Warner <pc_warner@yahoo.com>
+
+PRGNAM=cmatrix
+VERSION=1.2a
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+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 .
+chmod -R a-s,u+rw,go-w .
+
+CFLAGS="$SLKCFLAGS" \
+CPPFLAGS="$SLKCFLAGS" \
+./configure --prefix=/usr
+
+CFLAGS="$SLKCFLAGS" CPPFLAGS="$SLKCFLAGS" make
+
+# Manual install - patching the Makefile not worth it
+install -D -m 0755 $TMP/$PRGNAM-$VERSION/cmatrix \
+ $PKG/usr/bin/cmatrix
+install -D -m 0644 $TMP/$PRGNAM-$VERSION/cmatrix.1 \
+ $PKG/usr/man/man1/cmatrix.1
+install -D -m 0644 $TMP/$PRGNAM-$VERSION/matrix.fnt \
+ $PKG/usr/share/kbd/consolefonts/matrix.fnt
+install -D -m 0644 $TMP/$PRGNAM-$VERSION/matrix.psf.gz \
+ $PKG/usr/share/kbd/consolefonts/matrix.psf.gz
+install -D -m 0644 $TMP/$PRGNAM-$VERSION/mtx.pcf \
+ $PKG/usr/share/fonts/misc/mtx.pcf
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# Compress the man page
+gzip -9 $PKG/usr/man/man1/cmatrix.1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING README ChangeLog NEWS 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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/desktop/cmatrix/cmatrix.info b/desktop/cmatrix/cmatrix.info
new file mode 100644
index 0000000000000..bba332c6f892b
--- /dev/null
+++ b/desktop/cmatrix/cmatrix.info
@@ -0,0 +1,8 @@
+PRGNAM="cmatrix"
+VERSION="1.2a"
+HOMEPAGE="http://www.asty.org/cmatrix/"
+DOWNLOAD="http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz"
+MD5SUM="ebfb5733104a258173a9ccf2669968a1"
+MAINTAINER="Phillip Warner"
+EMAIL="pc_warner@yahoo.com"
+APPROVED="David Somero" \ No newline at end of file
diff --git a/desktop/cmatrix/doinst.sh b/desktop/cmatrix/doinst.sh
new file mode 100644
index 0000000000000..c9973502ab893
--- /dev/null
+++ b/desktop/cmatrix/doinst.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Update mkfontscale and mkfontdir:
+if [ -x /usr/bin/mkfontdir ]; then
+ ( cd /usr/share/fonts/misc
+ mkfontscale .
+ mkfontdir .
+ )
+fi
+
+# Update the X font indexes:
+if [ -x /usr/bin/fc-cache ]; then
+ /usr/bin/fc-cache -f
+fi
diff --git a/desktop/cmatrix/slack-desc b/desktop/cmatrix/slack-desc
new file mode 100644
index 0000000000000..37203a75f39f9
--- /dev/null
+++ b/desktop/cmatrix/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 ':'.
+
+ |-----handy-ruler-----------------------------------------------------|
+cmatrix: cmatrix (console Matrix screensaver)
+cmatrix:
+cmatrix: cmatrix creates a ncurses-based scrolling Matrix screen.
+cmatrix: The speed, color, scroll mode, and more can be adjusted.
+cmatrix: An optional custom Matrix font is included.
+cmatrix:
+cmatrix: http://cmatrix.info/
+cmatrix:
+cmatrix:
+cmatrix:
+cmatrix: