From 5a83ef7ca41d2084015f0eb7172808e66f7cbb22 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Fri, 26 Dec 2014 18:45:15 +0100 Subject: [PATCH] fix source path and add readme --- srcpkgs/syncthing/template | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/srcpkgs/syncthing/template b/srcpkgs/syncthing/template index 3b9bde0f76e..6e19864c08d 100644 --- a/srcpkgs/syncthing/template +++ b/srcpkgs/syncthing/template @@ -2,8 +2,6 @@ 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" @@ -22,13 +20,16 @@ do_build() { i686*) export GOARCH=386;; x86_64*) export GOARCH=amd64;; esac - export GOPATH="${XBPS_BUILDDDIR}" - ln -sf ${pkgname}-${version} ${pkgname} - cd ${pkgname}-${version} + + export GOPATH="${PWD}/gopath" + mkdir -p $GOPATH/src/github.com/syncthing + ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname} + go run build.go -no-upgrade } do_install() { - vbin ${pkgname}-${version}/bin/syncthing - vlicense ${pkgname}-${version}/LICENSE + vbin bin/syncthing + vlicense LICENSE + vdoc README.md }