mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
desktop/cmatrix: Added to 12.1 repository
This commit is contained in:
parent
b1b90d5b5c
commit
8e158fb05a
5 changed files with 118 additions and 0 deletions
7
desktop/cmatrix/README
Normal file
7
desktop/cmatrix/README
Normal file
|
@ -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.
|
71
desktop/cmatrix/cmatrix.SlackBuild
Normal file
71
desktop/cmatrix/cmatrix.SlackBuild
Normal file
|
@ -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
|
8
desktop/cmatrix/cmatrix.info
Normal file
8
desktop/cmatrix/cmatrix.info
Normal file
|
@ -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"
|
13
desktop/cmatrix/doinst.sh
Normal file
13
desktop/cmatrix/doinst.sh
Normal file
|
@ -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
|
19
desktop/cmatrix/slack-desc
Normal file
19
desktop/cmatrix/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue