2014-12-26 16:21:09 +00:00
|
|
|
# Template file for 'syncthing'
|
|
|
|
pkgname=syncthing
|
2015-04-26 14:03:31 +00:00
|
|
|
version=0.11.1
|
2015-03-22 15:05:51 +00:00
|
|
|
revision=1
|
2015-02-21 13:34:03 +00:00
|
|
|
build_style=go
|
|
|
|
go_import_path="github.com/syncthing/syncthing"
|
2014-12-26 16:21:09 +00:00
|
|
|
short_desc="Open Source Continuous File Synchronization"
|
|
|
|
maintainer="Duncan Overbruck <mail@duncano.de>"
|
2015-03-22 13:18:27 +00:00
|
|
|
license="MPLv2"
|
2014-12-26 16:21:09 +00:00
|
|
|
homepage="http://syncthing.net/"
|
|
|
|
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
|
2015-04-26 14:03:31 +00:00
|
|
|
checksum=acd644ee8d1ba2568e901ce1dfc0973efb695d185868675e12d472a783c31825
|
2014-12-26 16:21:09 +00:00
|
|
|
|
|
|
|
do_build() {
|
2015-02-21 13:34:03 +00:00
|
|
|
goarch="${GOARCH}"
|
|
|
|
unset GOARCH
|
2014-12-28 17:07:05 +00:00
|
|
|
export CGO_ENABLED=0
|
2014-12-26 17:45:15 +00:00
|
|
|
mkdir -p $GOPATH/src/github.com/syncthing
|
|
|
|
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
|
|
|
|
2014-12-26 18:56:42 +00:00
|
|
|
mkdir tmp
|
2014-12-28 17:07:05 +00:00
|
|
|
TMPDIR=${PWD}/tmp/ go run build.go -goos linux -goarch ${goarch} -no-upgrade -version "v${version}"
|
2014-12-26 18:56:42 +00:00
|
|
|
rm -rf tmp
|
2014-12-26 16:21:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-12-26 18:56:42 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-01-12 08:04:38 +00:00
|
|
|
arm*) vbin bin/linux_arm/syncthing;;
|
2014-12-26 18:56:42 +00:00
|
|
|
x86_64*|i686*) vbin bin/syncthing;;
|
|
|
|
esac
|
2014-12-26 17:45:15 +00:00
|
|
|
vlicense LICENSE
|
|
|
|
vdoc README.md
|
2014-12-26 16:21:09 +00:00
|
|
|
}
|