diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2015-04-03 10:55:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-03 20:50:14 +0700 |
commit | 7df7070e405f5012f5a1d1ae19e1ac34b6b4c56b (patch) | |
tree | 5f6c057d61a28cea524681a54844611ebaeb8558 /network/asciinema/asciinema.SlackBuild | |
parent | 29a711cc0d737d401beb0bc0eb2765ee7fc0aa52 (diff) | |
download | slackbuilds-7df7070e405f5012f5a1d1ae19e1ac34b6b4c56b.tar.gz |
network/asciinema: Updated for version 1.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/asciinema/asciinema.SlackBuild')
-rw-r--r-- | network/asciinema/asciinema.SlackBuild | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/network/asciinema/asciinema.SlackBuild b/network/asciinema/asciinema.SlackBuild index df38299e42..b2c2cb4f02 100644 --- a/network/asciinema/asciinema.SlackBuild +++ b/network/asciinema/asciinema.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for asciinema -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=asciinema -VERSION=${VERSION:-0.9.8} +VERSION=${VERSION:-1.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,12 +57,18 @@ fi set -e +if [ "$ARCH" = "x86_64" ]; then + SUPPNAME="linux-amd64" +else + SUPPNAME="linux-386" +fi + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$VERSION-$SUPPNAME +tar xvf $CWD/$PRGNAM-$VERSION-$SUPPNAME.tar.gz +cd $PRGNAM-$VERSION-$SUPPNAME chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -70,17 +76,25 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG - 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 +# install launcher +mkdir -p $PKG/usr/bin +install -D -m0755 $PRGNAM $PKG/usr/bin + +# install man page +mkdir -p $PKG/usr/man/man1 +install -D -m0644 $CWD/$PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1 +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.md LICENSE $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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |