1 TERMUX_PKG_HOMEPAGE
=https
://syncthing.net
/
2 TERMUX_PKG_DESCRIPTION
="Decentralized file synchronization"
3 TERMUX_PKG_VERSION
=0.14.31
4 TERMUX_PKG_SRCURL
=https
://github.com
/syncthing
/syncthing
/releases
/download
/v
${TERMUX_PKG_VERSION}/syncthing-source-v
${TERMUX_PKG_VERSION}.
tar.gz
5 TERMUX_PKG_SHA256
=065bb38a5fbe951b41bc67f5a34653ebd92956e2a31e87322dfbdb12ff6f509b
6 TERMUX_PKG_FOLDERNAME
=syncthing
11 # The build.sh script doesn't with our compiler
12 # so small adjustments to file locations are needed
13 # so the build.go is fine.
14 mkdir
-p go
/src
/github.com
/syncthing
/syncthing
15 cp $TERMUX_PKG_SRCDIR/vendor
/* .
/go
/src
/ -r
16 cp $TERMUX_PKG_SRCDIR/* go
/src
/github.com
/syncthing
/syncthing
-r
18 # Set gopath so dependencies are built as in go get etc.
19 export GOPATH
=$
(pwd)/go
21 cd go
/src
/github.com
/syncthing
/syncthing
23 # Unset GOARCH so building build.go is works.
24 export GO_ARCH
=$GOARCH
27 # Now file structure is same as go get etc.
29 .
/build
-goos android \
32 -version v
$TERMUX_PKG_VERSION \
36 termux_step_make_install
() {
37 cp go
/src
/github.com
/syncthing
/syncthing
/syncthing
$TERMUX_PREFIX/bin
/
39 for section
in 1 5 7; do
40 local MANDIR
=$PREFIX/share
/man
/man
$section
42 cp $TERMUX_PKG_SRCDIR/man
/*.
$section $MANDIR