31 lines
801 B
Bash
31 lines
801 B
Bash
# Template file for 'syncthing'
|
|
pkgname=syncthing
|
|
version=0.11.21
|
|
revision=2
|
|
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=d500857b9e165c0b574a86ca31bb067c4a8540c4c7591b6557dcc37189aeedd1
|
|
|
|
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 -goarch ${goarch} -no-upgrade -version "v${version}" build
|
|
rm -rf tmp
|
|
}
|
|
|
|
do_install() {
|
|
vbin syncthing
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
}
|