aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2016-10-03 14:33:08 +0300
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-08 08:07:20 +0700
commitec8c776a93dd01da48bc881ee95c97a6e3014787 (patch)
treea147ae2b71c06366c8a7093d80ed5241898047d8
parentc460b9ea34cdcdffdd15ce2e1541271c5d117605 (diff)
network/asciinema: Updated for version 1.3.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
-rw-r--r--network/asciinema/README3
-rw-r--r--network/asciinema/asciinema.1117
-rw-r--r--network/asciinema/asciinema.SlackBuild31
-rw-r--r--network/asciinema/asciinema.info12
4 files changed, 18 insertions, 145 deletions
diff --git a/network/asciinema/README b/network/asciinema/README
index 21c8dc9e7857d..dff897c2b2065 100644
--- a/network/asciinema/README
+++ b/network/asciinema/README
@@ -1,4 +1,3 @@
-Record and share your terminal sessions,
-the right way.
+Record and share your terminal sessions, the right way.
Forget screen recording apps and blurry video.
Enjoy a lightweight, purely text based approach to terminal recording.
diff --git a/network/asciinema/asciinema.1 b/network/asciinema/asciinema.1
deleted file mode 100644
index 1d96f401c701d..0000000000000
--- a/network/asciinema/asciinema.1
+++ /dev/null
@@ -1,117 +0,0 @@
-.TH "asciinema" "1" "June 21, 2015" "asciinema 1.1.1"
-.SH "NAME"
-asciinema \- terminal session recorder
-.SH "SYNOPSIS"
-.B asciinema
-.I [\-h] [\-\-version] command [<args>]
-.SH "DESCRIPTION"
-Terminal session recorder and the best companion of asciinema.org service.
-.PP
-asciinema is composed of multiple commands, similar to git, apt-get or brew.
-.PP
-When you run asciinema with no arguments help messages is displayed, listing all available commands with their options.
-.SH "OPTIONS"
-.TP
-\-h, \-\-help
-Display help message
-.TP
-\-\-version
-Display version information
-.SH "COMMANDS"
-.B rec [<filename>]
-.RS 4
-Record terminal session.
-.PP
-This is the single most important command in asciinema, since it is how you utilize this tool's main job.
-.PP
-By running \fBasciinema rec\fP \fI[filename]\fP 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
-If the \fIfilename\fP argument is given then the resulting recording is saved to a local file. It can later be replayed with \fBasciinema play\fP \fI<filename>\fP and/or uploaded to asciinema.org with \fBasciinema upload\fP \fI<filename>\fP. If the \fIfilename\fP argument is omitted then (after asking for confirmation) the resulting asciicast is uploaded to asciinema.org for further playback in a web browser.
-.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.
-.TP
-Available options:
-.RS 4
-.TP
-\-c, \-\-command
-specify command to record, defaults to $SHELL
-.TP
-\-t
-specify the title of the asciicast
-.TP
-\-w, \-\-max\-wait
-reduce recorded terminal inactivity to max <sec> seconds
-.TP
-\-y, \-\-yes
-answer "yes" to all prompts (e.g. upload confirmation)
-.TP
-\-q, \-\-quiet
-be quiet, suppress all notices/warnings (implies -y)
-.RE
-.RE
-.PP
-.B play <filename>
-.RS 4
-Replay recorded asciicast in a terminal.
-.PP
-This command replays given asciicast (as recorded by \fIrec\fP command) directly in your terminal.
-.PP
-When "-" is passed as a filename the asciicast is read from stdin.
-.PP
-NOTE: it is recommended to run it in a terminal of dimensions not smaller than the one used for recording as there's no "transcoding" of control sequences for new terminal size.
-.TP
-Available options:
-.RS 4
-.TP
-\-w, \-\-max\-wait
-reduce replayed terminal inactivity to max \fIsec\fP seconds
-.RE
-.RE
-.PP
-.B upload <filename>
-.RS 4
-Upload recorded asciicast to asciinema.org site.
-.PP
-This command uploads given asciicast (as recorded by \fIrec\fP command) to asciinema.org for further playback in a web browser.
-.PP
-\fBasciinema rec\fP \fIdemo.json\fP + \fBasciinema play\fP \fIdemo.json\fP + \fBasciinema upload\fP \fIdemo.json\fP is a nice combo for when you want to review an asciicast before publishing it on asciinema.org.
-.RE
-.PP
-.B auth
-.RS 4
-Assign local API token to asciinema.org account.
-.PP
-On every machine you install asciinema recorder, you get a new, unique API
-token. This command connects this local token with your asciinema.org account,
-and links all asciicasts recorded on this machine with the account.
-.PP
-This command displays the URL you should open in your web browser. If you never
-logged in to asciinema.org then your account will be created when opening the
-URL.
-.PP
-NOTE: it is \fBnecessary\fP to do this if you want to edit or delete your
-recordings on asciinema.org.
-.PP
-You can synchronize your config file (which keeps the API token) across the
-machines but that's not necessary. You can assign new tokens to your account
-from as many machines as you want.
-.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 a5bd32172fc5c..da9cb7bc4da3c 100644
--- a/network/asciinema/asciinema.SlackBuild
+++ b/network/asciinema/asciinema.SlackBuild
@@ -22,15 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
PRGNAM=asciinema
-VERSION=${VERSION:-1.2.0}
+VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -57,36 +56,28 @@ 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-$SUPPNAME
-tar xvf $CWD/$PRGNAM-$VERSION-$SUPPNAME.tar.gz
-cd $PRGNAM-$VERSION-$SUPPNAME
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
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
+python3 setup.py install --root=$PKG
# 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
+gzip -9 man/$PRGNAM.1
+install -D -m0644 man/$PRGNAM.1.gz $PKG/usr/man/man1/$PRGNAM.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/network/asciinema/asciinema.info b/network/asciinema/asciinema.info
index 9c3afc26cfb2a..c85546af7cea1 100644
--- a/network/asciinema/asciinema.info
+++ b/network/asciinema/asciinema.info
@@ -1,10 +1,10 @@
PRGNAM="asciinema"
-VERSION="1.2.0"
+VERSION="1.3.0"
HOMEPAGE="http://asciinema.org"
-DOWNLOAD="https://github.com/asciinema/asciinema/releases/download/v1.2.0/asciinema-1.2.0-linux-386.tar.gz"
-MD5SUM="4dbe4c0127fcd20ec32c6d81faac2a27"
-DOWNLOAD_x86_64="https://github.com/asciinema/asciinema/releases/download/v1.2.0/asciinema-1.2.0-linux-amd64.tar.gz"
-MD5SUM_x86_64="92fefe112b8464fe70bc92c8a8215ed0"
-REQUIRES=""
+DOWNLOAD="https://github.com/asciinema/asciinema/archive/v1.3.0.tar.gz"
+MD5SUM="451d4b6cbce39c096b649e3edb5afa92"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="python3"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"