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.SlackBuild21
-rw-r--r--desktop/tty-clock/tty-clock.info8
4 files changed, 17 insertions, 23 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 acac400b24..5fccb00f91 100644
--- a/desktop/tty-clock/tty-clock.SlackBuild
+++ b/desktop/tty-clock/tty-clock.SlackBuild
@@ -24,7 +24,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=tty-clock
-VERSION=${VERSION:-git20130806}
+VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -69,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 . \
@@ -78,20 +78,15 @@ 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
+sed -i 's,share/man,man,g' Makefile
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-make
-make install DESTDIR=$PKG
-
-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
diff --git a/desktop/tty-clock/tty-clock.info b/desktop/tty-clock/tty-clock.info
index a090d24c18..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"
+MAINTAINER="D Woodfall"
EMAIL="dave@slackbuilds.org"