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