You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
873 B
32 lines
873 B
8 years ago
|
name=syncthing
|
||
|
version=0.14.6
|
||
|
update_url='https://syncthing.net/'
|
||
|
|
||
|
dlextract "https://github.com/$name/$name/releases/download/v$version/$name-source-v$version.tar.gz" \
|
||
|
'ddff17f926e333e615d08c8d31050730'
|
||
|
extrafile 'syncthing-browser.desktop'
|
||
|
header_end
|
||
|
|
||
|
mkdir -p "src/github.com/$name/"
|
||
|
mv "$name" "src/github.com/$name"
|
||
|
cd "src/github.com/$name/$name"
|
||
|
|
||
|
GOPATH="$PWD/../../../../:$GOPATH" go run build.go -no-upgrade
|
||
|
|
||
|
rm -f bin/testutil
|
||
|
|
||
|
# Install program
|
||
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" bin/*
|
||
|
|
||
|
# Install manpages
|
||
|
for num in 1 5 7; do
|
||
|
for file in man/*.$num; do
|
||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man$num" "$file"
|
||
|
done
|
||
|
done
|
||
|
|
||
|
# Install desktop
|
||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" ../../../../syncthing-browser.desktop
|
||
|
|
||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh et:
|