aboutsummaryrefslogtreecommitdiff
path: root/graphics/lcdtest/lcdtest.SlackBuild
diff options
context:
space:
mode:
authorTaxis <taxis@gmx.us>2011-03-04 11:20:47 -0600
committerRobby Workman <rworkman@slackbuilds.org>2011-03-08 12:14:44 -0600
commitf6064089f376eaa2f03fde1e6e10103140acaf9e (patch)
tree340915806a2a1feb8e1ea0085bb473d3c28795ad /graphics/lcdtest/lcdtest.SlackBuild
parent580063bebbecd33e4ecfa8feb124243bfd69ecaf (diff)
graphics/lcdtest: Added (utility to display LCD monitor test patterns)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'graphics/lcdtest/lcdtest.SlackBuild')
-rw-r--r--graphics/lcdtest/lcdtest.SlackBuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/graphics/lcdtest/lcdtest.SlackBuild b/graphics/lcdtest/lcdtest.SlackBuild
new file mode 100644
index 000000000000..918519698188
--- /dev/null
+++ b/graphics/lcdtest/lcdtest.SlackBuild
@@ -0,0 +1,59 @@
+#!/bin/sh
+
+# Slackware build script for lcdtest
+
+# Written by Taxis taxis@gmx.us
+
+PRGNAM=lcdtest
+VERSION=${VERSION:-1.18}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e # Exit on most errors
+
+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 . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Undebianize the font path
+patch -p1 < $CWD/font-path.diff
+
+scons --prefix=/usr --mandir=man --install-sandbox=$PKG install
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING 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}