Browse Source

Update syncthing to 0.14.37

master
mid-kid 7 years ago
parent
commit
4952ce75cc
  1. 25
      satellites/syncthing.sat

25
satellites/syncthing.sat

@ -1,34 +1,31 @@
name=syncthing
version=0.14.32
version=0.14.37
update_url="https://github.com/$name/$name/releases"
dlextract "https://github.com/$name/$name/releases/download/v$version/$name-source-v$version.tar.gz" \
'3f5a4a413624572d9191e7032f480f3b'
'7c73632aa1d9c5a1c1824ace7516be86'
extrafile 'syncthing-browser.desktop'
_
# Set up a GOPATH for all the included libraries
mkdir -p "src/github.com/$name/"
mv -T "$name" "src/github.com/$name/$name"
export GOPATH="$PWD"
# Set up a fake GOPATH
mkdir -p ".gopath/src/github.com/$name/"
ln -rs "$name" ".gopath/src/github.com/$name/$name"
export GOPATH="$PWD/.gopath"
cd "src/github.com/$name/$name"
cd "$name"
# Do shared linking against the go libraries
sed -i -e 's/"install", "-v", "-ldflags"/"install", "-linkshared", "-v", "-ldflags"/' build.go
go run build.go -no-upgrade
go run build.go -no-upgrade build
# Install program
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" bin/syncthing
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" syncthing
# Install manpages
for file in man/syncthing.1 man/*.5 man/*.7; do
num="$(echo "$file" | cut -d '.' -f 2)"
num="$(echo "$file" | cut -d . -f 2)"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_man/man$num" "$file"
done
# Install desktop
install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/applications" ../../../../syncthing-browser.desktop
install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/applications" ../syncthing-browser.desktop
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:

Loading…
Cancel
Save