mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
syncthing: fix cross compilation
This commit is contained in:
parent
be7f19444f
commit
c032f41f8d
1 changed files with 3 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'syncthing'
|
# Template file for 'syncthing'
|
||||||
pkgname=syncthing
|
pkgname=syncthing
|
||||||
version=0.11.21
|
version=0.11.21
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/syncthing/syncthing"
|
go_import_path="github.com/syncthing/syncthing"
|
||||||
short_desc="Open Source Continuous File Synchronization"
|
short_desc="Open Source Continuous File Synchronization"
|
||||||
|
@ -19,15 +19,12 @@ do_build() {
|
||||||
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
||||||
|
|
||||||
mkdir tmp
|
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
|
rm -rf tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
vbin syncthing
|
||||||
arm*) vbin bin/linux_arm/syncthing;;
|
|
||||||
x86_64*|i686*) vbin bin/syncthing;;
|
|
||||||
esac
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue