summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
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
commit7df7070e405f5012f5a1d1ae19e1ac34b6b4c56b (patch)
tree5f6c057d61a28cea524681a54844611ebaeb8558 /network
parent29a711cc0d737d401beb0bc0eb2765ee7fc0aa52 (diff)
downloadslackbuilds-7df7070e405f5012f5a1d1ae19e1ac34b6b4c56b.tar.gz
slackbuilds-7df7070e405f5012f5a1d1ae19e1ac34b6b4c56b.tar.xz
network/asciinema: Updated for version 1.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/asciinema/asciinema.179
-rw-r--r--network/asciinema/asciinema.SlackBuild30
-rw-r--r--network/asciinema/asciinema.info12
-rw-r--r--network/asciinema/doinst.sh3
4 files changed, 110 insertions, 14 deletions
diff --git a/network/asciinema/asciinema.1 b/network/asciinema/asciinema.1
new file mode 100644
index 0000000000..17a5a4770d
--- /dev/null
+++ b/network/asciinema/asciinema.1
@@ -0,0 +1,79 @@
+.TH "ASCIINEMA" "1" "December 17, 2014" "asciinema 0.9.9"
+.SH "NAME"
+asciinema \- Terminal recorder for asciinema.org service
+.SH "SYNOPSIS"
+.I asciinema
+[\-h] [\-v] command [<args>]
+.SH "DESCRIPTION"
+Command line client (terminal recorder) for asciinema.org service.
+.PP
+If you run
+.I asciinema
+with no arguments, help will be displayed showing all available commands.
+.PP
+In addition to this, you can run any asciinema command with the
+.B -h
+switch to display help about that specific command. For example, try running \fBasciinema rec -h\fP. This will display a list of all of the options \fBrec\fP command accepts, with their defaults.
+.PP
+.SH "OPTIONS"
+.TP
+\-h, \-\-help
+Display help message
+.TP
+\-v, \-\-version
+Display version information
+.SH "COMMANDS"
+.B rec
+.RS 4
+Record terminal session and upload it to asciinema.org site.
+.PP
+This is the single most important command in \fIasciinema\fP, since it is how you utilize this tool's main job.
+.PP
+By running \fIasciinema\fP rec you start a new recording session. The command (process) that is recorded can be specified with \fI-c\fP option (see below), and defaults to \fB$SHELL\fP which is what you want in most cases.
+.PP
+Recording finishes when you exit the shell (hit \fBCtrl+D\fP or type \fIexit\fP). If the recorded process is not a shell than recording finishes when the process exits.
+.PP
+\fBASCIINEMA_REC=1\fP is added to recorded process environment variables. This can be used by your shell's config file (\fI.bashrc\fP, \fI.zshrc\fP) to alter the prompt or play a sound when shell is being recorded.
+.RS 4
+.TP
+\-c
+command to record (if none given a new shell instance is recorded)
+.TP
+\-h, \-\-help
+Display help message
+.TP
+\-\-max\-wait
+reduce recorded terminal inactivity to maximum of seconds (0 turns off)
+.TP
+\-t
+set asciicast title (can be also set later, on the site)
+.TP
+\-y
+upload immediately after shell exits, without asking for confirmation
+.RE
+.RE
+.PP
+.B auth
+.RS 4
+Assign local API token to asciinema.org account.
+.TP
+\-h, \-\-help
+Display help message
+.RE
+.SH "CONTRIBUTING"
+If you want to contribute to this project check out Contributing page: \fIhttps://asciinema.org/contributing\fP
+.SH "BUGS"
+All your bug reports and feature ideas are highly appreciated as they help to improve the quality and functionality of asciinema for everyone.
+.PP
+As the service is built of several parts there are separate bug trackers:
+.TP
+https://github.com/asciinema/asciinema/issues
+issues and ideas for the command line recorder
+.TP
+https://github.com/asciinema/asciinema.org/issues
+issues and ideas for the website
+.TP
+https://github.com/asciinema/asciinema-player/issues
+issues and ideas for the javascript player
+.SH "AUTHORS"
+Developed with passion by \fBMarcin Kulik\fP and great open source contributors.
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}
diff --git a/network/asciinema/asciinema.info b/network/asciinema/asciinema.info
index 30f144040d..66294bcbec 100644
--- a/network/asciinema/asciinema.info
+++ b/network/asciinema/asciinema.info
@@ -1,10 +1,10 @@
PRGNAM="asciinema"
-VERSION="0.9.8"
+VERSION="1.0.0"
HOMEPAGE="http://asciinema.org"
-DOWNLOAD="https://pypi.python.org/packages/source/a/asciinema/asciinema-0.9.8.tar.gz"
-MD5SUM="ae8662d033af0e973d5864a247117e7f"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-REQUIRES="pysetuptools python-requests"
+DOWNLOAD="https://github.com/asciinema/asciinema/releases/download/v1.0.0/asciinema-1.0.0-linux-386.tar.gz"
+MD5SUM="2374827169fc7a4fe29c013388627792"
+DOWNLOAD_x86_64="https://github.com/asciinema/asciinema/releases/download/v1.0.0/asciinema-1.0.0-linux-amd64.tar.gz"
+MD5SUM_x86_64="46bbe640093f6d5c43a1a56913c89927"
+REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"
diff --git a/network/asciinema/doinst.sh b/network/asciinema/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/network/asciinema/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi