Commit | Line | Data |
---|---|---|
05f44081 FF |
1 | TERMUX_PKG_HOMEPAGE=https://asciinema.org/ |
2 | TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way" | |
c52d3653 | 3 | TERMUX_PKG_VERSION=1.2.0 |
05f44081 FF |
4 | TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz |
5 | TERMUX_PKG_FOLDERNAME=asciinema-${TERMUX_PKG_VERSION} | |
6 | TERMUX_PKG_BUILD_IN_SRC=yes | |
7 | ||
8 | termux_step_make () { | |
f6a56287 | 9 | termux_setup_golang |
05f44081 FF |
10 | export GOPATH=$TERMUX_PKG_TMPDIR |
11 | cd $GOPATH | |
12 | mkdir -p src/github.com/asciinema/asciinema/ | |
13 | cp -Rf $TERMUX_PKG_SRCDIR/* src/github.com/asciinema/asciinema/ | |
14 | } | |
15 | ||
16 | termux_step_make_install () { | |
17 | cd $GOPATH/src/github.com/asciinema/asciinema | |
05f44081 FF |
18 | PREFIX=$TERMUX_PREFIX make build |
19 | PREFIX=$TERMUX_PREFIX make install | |
f636b957 | 20 | |
bd75d62a | 21 | mkdir -p $TERMUX_PREFIX/share/man/man1/ |
f636b957 | 22 | cp $TERMUX_PKG_SRCDIR/man/asciinema.1 $TERMUX_PREFIX/share/man/man1/ |
05f44081 | 23 | } |