summaryrefslogtreecommitdiffstats
path: root/desktop/tty-clock
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/tty-clock')
-rw-r--r--desktop/tty-clock/README5
-rw-r--r--desktop/tty-clock/slack-desc6
-rw-r--r--desktop/tty-clock/tty-clock.SlackBuild45
-rw-r--r--desktop/tty-clock/tty-clock.info10
4 files changed, 35 insertions, 31 deletions
diff --git a/desktop/tty-clock/README b/desktop/tty-clock/README
index 13c8bdc035..a4e8adfee9 100644
--- a/desktop/tty-clock/README
+++ b/desktop/tty-clock/README
@@ -1,4 +1,3 @@
-tty-clock (clock in ncurses)
+tty-clock (terminal ncurses clock)
-See /usr/doc/tty-clock-git20130806/README for options
-or tty-clock -h
+tty-clock is a clock for the terminal.
diff --git a/desktop/tty-clock/slack-desc b/desktop/tty-clock/slack-desc
index 9448b8f12f..afb174a50b 100644
--- a/desktop/tty-clock/slack-desc
+++ b/desktop/tty-clock/slack-desc
@@ -6,10 +6,9 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-tty-clock: tty-clock (clock in ncurses)
+tty-clock: tty-clock (terminal ncurses clock)
tty-clock:
-tty-clock: See /usr/doc/tty-clock-git20130806/README for options
-tty-clock: or tty-clock -h
+tty-clock: tty-clock is a clock for the terminal.
tty-clock:
tty-clock: Homepage: https://github.com/xorg62/tty-clock
tty-clock:
@@ -17,3 +16,4 @@ tty-clock:
tty-clock:
tty-clock:
tty-clock:
+tty-clock:
diff --git a/desktop/tty-clock/tty-clock.SlackBuild b/desktop/tty-clock/tty-clock.SlackBuild
index 37644a9e2d..5fccb00f91 100644
--- a/desktop/tty-clock/tty-clock.SlackBuild
+++ b/desktop/tty-clock/tty-clock.SlackBuild
@@ -1,7 +1,7 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for tty-clock
-# Copyright 2013 David Woodfall <dave@dawoodfall.net>
+# Copyright 2013 David Woodfall <dave@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,26 +21,36 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=tty-clock
-VERSION=${VERSION:-git20130806}
+VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+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" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -59,7 +69,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -68,24 +78,19 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed -i 's%INSTALLPATH =.*%INSTALLPATH = /usr/bin/%' Makefile
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
-make install DESTDIR=$PKG
+sed -i 's,share/man,man,g' Makefile
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make CFLAGS="$SLKCFLAGS"
+make install DESTDIR=$PKG PREFIX=/usr
+strip --strip-unneeded $PKG/usr/bin/$PRGNAM
+gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/tty-clock/tty-clock.info b/desktop/tty-clock/tty-clock.info
index ae34e8de86..5747071c8a 100644
--- a/desktop/tty-clock/tty-clock.info
+++ b/desktop/tty-clock/tty-clock.info
@@ -1,10 +1,10 @@
PRGNAM="tty-clock"
-VERSION="git20130806"
+VERSION="2.3"
HOMEPAGE="https://github.com/xorg62/tty-clock"
-DOWNLOAD="http://www.unrealize.co.uk/source/tty-clock-git20130806.tar.xz"
-MD5SUM="a87983dd3a187ef88fa1a0dd702416f1"
+DOWNLOAD="https://github.com/xorg62/tty-clock/archive/v2.3/tty-clock-2.3.tar.gz"
+MD5SUM="2452b5a3286d4d7993913cbfc744ed1e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="David Woodfall"
-EMAIL="dave@dawoodfall.net"
+MAINTAINER="D Woodfall"
+EMAIL="dave@slackbuilds.org"