void-packages/srcpkgs/syncthing/template

31 lines
801 B
Bash
Raw Normal View History

2014-12-26 17:21:09 +01:00
# Template file for 'syncthing'
pkgname=syncthing
2015-08-30 14:20:42 +02:00
version=0.11.23
revision=1
build_style=go
go_import_path="github.com/syncthing/syncthing"
2014-12-26 17:21:09 +01:00
short_desc="Open Source Continuous File Synchronization"
2015-05-03 13:39:40 +02:00
maintainer="Duncaen <duncaen@voidlinux.eu>"
2015-03-22 14:18:27 +01:00
license="MPLv2"
2014-12-26 17:21:09 +01:00
homepage="http://syncthing.net/"
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
2015-08-30 14:20:42 +02:00
checksum=8c011e90c8c98aea2f9fb58d8fdc0ebbe4ef442569294a0610615fc528d0525e
2014-12-26 17:21:09 +01:00
do_build() {
goarch="${GOARCH}"
unset GOARCH
export CGO_ENABLED=0
2014-12-26 18:45:15 +01:00
mkdir -p $GOPATH/src/github.com/syncthing
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
2014-12-26 19:56:42 +01:00
mkdir tmp
2015-08-23 15:36:40 +02:00
TMPDIR=${PWD}/tmp/ go run build.go -goarch ${goarch} -no-upgrade -version "v${version}" build
2014-12-26 19:56:42 +01:00
rm -rf tmp
2014-12-26 17:21:09 +01:00
}
do_install() {
2015-08-23 15:36:40 +02:00
vbin syncthing
2014-12-26 18:45:15 +01:00
vlicense LICENSE
vdoc README.md
2014-12-26 17:21:09 +01:00
}