35 lines
967 B
Text
35 lines
967 B
Text
|
# Template file for 'syncthing'
|
||
|
pkgname=syncthing
|
||
|
version=0.10.13
|
||
|
revision=1
|
||
|
wrksrc=src/github.com/syncthing/
|
||
|
create_wrksrc=yes
|
||
|
hostmakedepends="go>=1.3"
|
||
|
if [ "$CROSS_BUILD" ]; then
|
||
|
hostmakedepends+=" go-cross-linux"
|
||
|
fi
|
||
|
short_desc="Open Source Continuous File Synchronization"
|
||
|
maintainer="Duncan Overbruck <mail@duncano.de>"
|
||
|
license="GPL-3"
|
||
|
homepage="http://syncthing.net/"
|
||
|
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
|
||
|
checksum=19d0d72eac7af99714c047677d892559a8d4c96c73ef5ba50a48cec44a03def2
|
||
|
|
||
|
do_build() {
|
||
|
case "$XBPS_TARGET_MACHINE" in
|
||
|
armv6*) export GOARCH=arm; export GOARM=6;;
|
||
|
armv7*) export GOARCH=arm; export GOARM=7;;
|
||
|
i686*) export GOARCH=386;;
|
||
|
x86_64*) export GOARCH=amd64;;
|
||
|
esac
|
||
|
export GOPATH="${XBPS_BUILDDDIR}"
|
||
|
ln -sf ${pkgname}-${version} ${pkgname}
|
||
|
cd ${pkgname}-${version}
|
||
|
go run build.go -no-upgrade
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
vbin ${pkgname}-${version}/bin/syncthing
|
||
|
vlicense ${pkgname}-${version}/LICENSE
|
||
|
}
|