33 lines
905 B
Bash
33 lines
905 B
Bash
# Template file for 'syncthing'
|
|
pkgname=syncthing
|
|
version=0.11.2
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/syncthing/syncthing"
|
|
short_desc="Open Source Continuous File Synchronization"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="MPLv2"
|
|
homepage="http://syncthing.net/"
|
|
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=59784b57e54c2271f9d8d5544e03cbbb2413d41e72929f11e75ec46c0e4c4549
|
|
|
|
do_build() {
|
|
goarch="${GOARCH}"
|
|
unset GOARCH
|
|
export CGO_ENABLED=0
|
|
mkdir -p $GOPATH/src/github.com/syncthing
|
|
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}"
|
|
rm -rf tmp
|
|
}
|
|
|
|
do_install() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*) vbin bin/linux_arm/syncthing;;
|
|
x86_64*|i686*) vbin bin/syncthing;;
|
|
esac
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
}
|