fix source path and add readme
This commit is contained in:
parent
e974a63fc3
commit
5a83ef7ca4
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue