Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
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.
 
 
 
 
 

28 lines
913 B

name=syncthing
version=0.14.13
update_url="https://github.com/$name/$name/releases"
dlextract "https://github.com/$name/$name/releases/download/v$version/$name-source-v$version.tar.gz" \
'116ad104dc286d930a0e260efd6aed03'
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
# Install program
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" bin/syncthing
# Install manpages
for file in man/syncthing.1 man/*.5 man/*.7; do
num="$(echo "$file" | cut -d '.' -f 2)"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man$num" "$file"
done
# Install desktop
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/applications" ../../../../syncthing-browser.desktop
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: