fix source path and add readme
This commit is contained in:
parent
e974a63fc3
commit
5a83ef7ca4
|
@ -2,8 +2,6 @@
|
||||||
pkgname=syncthing
|
pkgname=syncthing
|
||||||
version=0.10.13
|
version=0.10.13
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc=src/github.com/syncthing/
|
|
||||||
create_wrksrc=yes
|
|
||||||
hostmakedepends="go>=1.3"
|
hostmakedepends="go>=1.3"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" go-cross-linux"
|
hostmakedepends+=" go-cross-linux"
|
||||||
|
@ -22,13 +20,16 @@ do_build() {
|
||||||
i686*) export GOARCH=386;;
|
i686*) export GOARCH=386;;
|
||||||
x86_64*) export GOARCH=amd64;;
|
x86_64*) export GOARCH=amd64;;
|
||||||
esac
|
esac
|
||||||
export GOPATH="${XBPS_BUILDDDIR}"
|
|
||||||
ln -sf ${pkgname}-${version} ${pkgname}
|
export GOPATH="${PWD}/gopath"
|
||||||
cd ${pkgname}-${version}
|
mkdir -p $GOPATH/src/github.com/syncthing
|
||||||
|
ln -s $PWD $GOPATH/src/github.com/syncthing/${pkgname}
|
||||||
|
|
||||||
go run build.go -no-upgrade
|
go run build.go -no-upgrade
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin ${pkgname}-${version}/bin/syncthing
|
vbin bin/syncthing
|
||||||
vlicense ${pkgname}-${version}/LICENSE
|
vlicense LICENSE
|
||||||
|
vdoc README.md
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue