aboutsummaryrefslogtreecommitdiff
path: root/desktop/tty-clock
diff options
context:
space:
mode:
authorDavid Woodfall <dave@slackbuilds.org>2022-02-19 06:19:46 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-20 15:12:37 +0700
commit3a8fc0b8c50ebb6014522e798528fecdbc95f5e0 (patch)
tree07f9a9c18a4c3bae56cddc439b01f2ae20d9a306 /desktop/tty-clock
parent20cd93fc1eaee280a7c887bc8be7e994d8734a20 (diff)
desktop/tty-clock: Updated for version 2.3.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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.info6
4 files changed, 16 insertions, 22 deletions
diff --git a/desktop/tty-clock/README b/desktop/tty-clock/README
index 13c8bdc0354d..a4e8adfee9eb 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 9448b8f12f99..afb174a50ba0 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 acac400b24e3..5fccb00f91ed 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 a090d24c1868..76553674b930 100644
--- a/desktop/tty-clock/tty-clock.info
+++ b/desktop/tty-clock/tty-clock.info
@@ -1,8 +1,8 @@
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=""