fix source path and add readme

This commit is contained in:
Duncan Overbruck 2014-12-26 18:45:15 +01:00
parent e974a63fc3
commit 5a83ef7ca4
1 changed files with 8 additions and 7 deletions

View File

@ -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
}