2014-12-26 17:21:09 +01:00
|
|
|
# Template file for 'syncthing'
|
|
|
|
pkgname=syncthing
|
2015-09-13 12:05:15 +02:00
|
|
|
version=0.11.25
|
2015-08-30 14:20:42 +02:00
|
|
|
revision=1
|
2015-02-21 14:34:03 +01:00
|
|
|
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-09-13 12:05:15 +02:00
|
|
|
checksum=c91a0d5b4106fe78447a0c7df86d7c4efc98a3e968b80a58984afaab004bbebf
|
2014-12-26 17:21:09 +01:00
|
|
|
|
|
|
|
do_build() {
|
2015-02-21 14:34:03 +01:00
|
|
|
goarch="${GOARCH}"
|
|
|
|
unset GOARCH
|
2014-12-28 18:07:05 +01:00
|
|
|
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
|
|
|
}
|