syncthing: fix cross compilation
This commit is contained in:
parent
be7f19444f
commit
c032f41f8d
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'syncthing'
|
||||
pkgname=syncthing
|
||||
version=0.11.21
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=go
|
||||
go_import_path="github.com/syncthing/syncthing"
|
||||
short_desc="Open Source Continuous File Synchronization"
|
||||
|
@ -19,15 +19,12 @@ do_build() {
|
|||
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
||||
|
||||
mkdir tmp
|
||||
TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade -version "v${version}"
|
||||
TMPDIR=${PWD}/tmp/ go run build.go -goarch ${goarch} -no-upgrade -version "v${version}" build
|
||||
rm -rf tmp
|
||||
}
|
||||
|
||||
do_install() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
arm*) vbin bin/linux_arm/syncthing;;
|
||||
x86_64*|i686*) vbin bin/syncthing;;
|
||||
esac
|
||||
vbin syncthing
|
||||
vlicense LICENSE
|
||||
vdoc README.md
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user