summaryrefslogtreecommitdiff
path: root/network/asciinema/asciinema.SlackBuild
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2019-01-20 11:49:47 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-01-26 07:53:36 +0700
commit6d1c9e22d3bfe0e1e2385f6472ccccbd65ea971a (patch)
treed58ce8685a6b94b2304110d34753543651e570cb /network/asciinema/asciinema.SlackBuild
parent77c1ee8a63bfbfeecba7c379de5dac6132409e82 (diff)
downloadslackbuilds-6d1c9e22d3bfe0e1e2385f6472ccccbd65ea971a.tar.gz
network/asciinema: Updated for version 2.0.2.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'network/asciinema/asciinema.SlackBuild')
-rw-r--r--network/asciinema/asciinema.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/network/asciinema/asciinema.SlackBuild b/network/asciinema/asciinema.SlackBuild
index 1028babd69..db3f23b1a4 100644
--- a/network/asciinema/asciinema.SlackBuild
+++ b/network/asciinema/asciinema.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for asciinema
-# Copyright 2014-2018 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2014-2019 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=asciinema
-VERSION=${VERSION:-2.0.1}
+VERSION=${VERSION:-2.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -72,15 +72,17 @@ find -L . \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Fixed doc and manpage path
+sed -i -e "s/share\/doc/doc/" -e "s/share\/man/man/" setup.py
+
python3 setup.py install --root=$PKG
# install man page
-mkdir -p $PKG/usr/man/man1
-gzip -9 man/$PRGNAM.1
-install -D -m0644 man/$PRGNAM.1.gz $PKG/usr/man/man1/$PRGNAM.1.gz
+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 *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install