~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fb887a7
)
syncthing: Set -version when building
author
Fredrik Fornwall
<fredrik@fornwall.net>
Tue, 11 Apr 2017 20:22:54 +0000
(22:22 +0200)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Tue, 11 Apr 2017 20:22:54 +0000
(22:22 +0200)
packages/syncthing/build.sh
patch
|
blob
|
blame
|
history
diff --git
a/packages/syncthing/build.sh
b/packages/syncthing/build.sh
index
63982db
..
a537a3e
100644
(file)
--- a/
packages/syncthing/build.sh
+++ b/
packages/syncthing/build.sh
@@
-1,34
+1,39
@@
TERMUX_PKG_HOMEPAGE=https://syncthing.net/
TERMUX_PKG_HOMEPAGE=https://syncthing.net/
-TERMUX_PKG_DESCRIPTION="
d
ecentralized file synchronization"
+TERMUX_PKG_DESCRIPTION="
D
ecentralized file synchronization"
TERMUX_PKG_VERSION=0.14.27-rc.2
TERMUX_PKG_SRCURL=https://github.com/syncthing/syncthing/archive/v0.14.27-rc.2.tar.gz
TERMUX_PKG_SHA256=2243d3ddec966fef7f6563e3028c17f55916479a4e8fe5b30cd0960825f9f3b0
TERMUX_PKG_FOLDERNAME=syncthing-${TERMUX_PKG_VERSION}
TERMUX_PKG_VERSION=0.14.27-rc.2
TERMUX_PKG_SRCURL=https://github.com/syncthing/syncthing/archive/v0.14.27-rc.2.tar.gz
TERMUX_PKG_SHA256=2243d3ddec966fef7f6563e3028c17f55916479a4e8fe5b30cd0960825f9f3b0
TERMUX_PKG_FOLDERNAME=syncthing-${TERMUX_PKG_VERSION}
-termux_step_make(){
-termux_setup_golang
-# the build.sh script doesn't with our compiler
-# so small adjustments to file locations needed
-# so the build.go is fine.
+termux_step_make(){
+ termux_setup_golang
+ # The build.sh script doesn't with our compiler
+ # so small adjustments to file locations are needed
+ # so the build.go is fine.
mkdir -p go/src/github.com/syncthing/syncthing
cp $TERMUX_PKG_SRCDIR/vendor/* ./go/src/ -r
cp $TERMUX_PKG_SRCDIR/* go/src/github.com/syncthing/syncthing -r
mkdir -p go/src/github.com/syncthing/syncthing
cp $TERMUX_PKG_SRCDIR/vendor/* ./go/src/ -r
cp $TERMUX_PKG_SRCDIR/* go/src/github.com/syncthing/syncthing -r
-# set gopath so dependencies are built as in go get etc
+ # Set gopath so dependencies are built as in go get etc.
export GOPATH=$(pwd)/go
export GOPATH=$(pwd)/go
+
cd go/src/github.com/syncthing/syncthing
cd go/src/github.com/syncthing/syncthing
-# unset GOARCH so building build.go is works
+
+ # Unset GOARCH so building build.go is works.
export GO_ARCH=$GOARCH
export GO_ARCH=$GOARCH
- unset GOOS
- unset GOARCH
-# now fike structure is same as go get etc..
-# we can build it
+ unset GOOS GOARCH
+
+ # Now file structure is same as go get etc.
go build build.go
go build build.go
- ./build -goos android -goarch $GO_ARCH -no-upgrade build
+ ./build -goos android \
+ -goarch $GO_ARCH \
+ -no-upgrade \
+ -version v$TERMUX_PKG_VERSION \
+ build
+
}
}
-# im sure there are better ways of doing it. I don't use go though.
termux_step_make_install() {
termux_step_make_install() {
-cp go/src/github.com/syncthing/syncthing/syncthing $TERMUX_PREFIX/bin/
+
cp go/src/github.com/syncthing/syncthing/syncthing $TERMUX_PREFIX/bin/
}
}