Skip to content
Permalink
d682eee8f3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 54 lines (42 sloc) 1.37 KB
#!/bin/env beesh
# BEE_VERSION syncthing-1.29.5-0
# SRCURL[0]="https://github.com/syncthing/syncthing/releases/download/v${PKGVERSION}/syncthing-source-v${PKGVERSION}.tar.gz syncthing-v${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/0f436d5a73e77d42206dea6c8b827204/syncthing-v1.29.5.tar.gz"
# PATCHURL+=()
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch
#}
#mee_configure() {
# bee_configure
#}
mee_build() {
# export GOPATH=${F}
export GOCACHE="${B}/cache/go-build"
export GOENV="${B}/.config/go/env"
export GOMODCACHE="${B}/pkg/mod"
# go clean -r -x build.go # NEVER EVER run this as root
cd ${S}
go run -x -a -v build.go
# rebuild syncthing.exe with no-upgrade option
# ends up in $S
go run -x -a -v build.go -no-upgrade build syncthing
}
## mee_install() should install into "${D}"
## default: 'make install DESTDIR="${D}"'
mee_install() {
mkdir -p ${D}/usr/bin
for b in stdiscosrv strelaysrv; do
cp ${S}/bin/$b ${D}/usr/bin
done
# install no-upgrade binary
cp ${S}/syncthing ${D}/usr/bin
mkdir -p ${D}/usr/share/man/man1
cp ${S}/man/syncthing.1 ${D}/usr/share/man/man1
mkdir -p ${D}/usr/share/man/man5
cp ${S}/man/syncthing-{config,stignore}.5 ${D}/usr/share/man/man5
mkdir -p ${D}/usr/share/man/man7
cp ${S}/man/syncthing-*.7 ${D}/usr/share/man/man7
}