1 # Go programs does not build on android-386
2 # - will hopefully get fixed in go 1.6!
3 # https://github.com/golang/go/issues/9327
4 TERMUX_PKG_HOMEPAGE
=https
://asciinema.org
/
5 TERMUX_PKG_DESCRIPTION
="Record and share your terminal sessions, the right way"
6 TERMUX_PKG_VERSION
=1.1.1
7 TERMUX_PKG_SRCURL
=https
://github.com
/asciinema
/asciinema
/archive
/v
${TERMUX_PKG_VERSION}.
tar.gz
8 TERMUX_PKG_FOLDERNAME
=asciinema-
${TERMUX_PKG_VERSION}
9 TERMUX_PKG_BUILD_IN_SRC
=yes
13 export GO_LDFLAGS
="-extldflags=-pie"
15 if [ "$TERMUX_ARCH" = "arm" ]; then
18 elif [ "$TERMUX_ARCH" = "i686" ]; then
22 echo "ERROR: Unsupported arch: $TERMUX_ARCH"
26 export GOPATH
=$TERMUX_PKG_TMPDIR
28 mkdir
-p src
/github.com
/asciinema
/asciinema
/
29 cp -Rf
$TERMUX_PKG_SRCDIR/* src
/github.com
/asciinema
/asciinema
/
32 termux_step_make_install
() {
33 cd $GOPATH/src
/github.com
/asciinema
/asciinema
34 export GOROOT
=$HOME/lib
/go
/
35 export PATH
=$GOROOT/bin
:$PATH
36 PREFIX
=$TERMUX_PREFIX make build
37 PREFIX
=$TERMUX_PREFIX make install