summaryrefslogtreecommitdiff
path: root/packages/net-p2p/syncthing/syncthing-scm.exheres-0
blob: 3126b9e77be3520148e29ad55633ff12eb3a0a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Distributed under the terms of the GNU General Public License v2

SCM_REPOSITORY="https://github.com/syncthing/syncthing.git"


require scm-git systemd-service

DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64 ~x86"
SUMMARY="Open, trustworthy and decentralized syncing engine"
DESCRIPTION=""
HOMEPAGE="http://syncthing.net"
LICENCES="MIT"
DEPENDENCIES="
	dev-lang/go
"

export GOPATH="${WORK}"

GO_PN="github.com/${PN}/${PN}"

#SCM_CHECKOUT_TO="${WORK}/src/github.com/syncthing/syncthing"
DEFAULT_SRC_PREPARE_PATCHES=(
	${FILES}/tls_params.patch
)

src_prepare() {
	default
	WORK=${WORK}/src/github.com/syncthing/syncthing
	edo mkdir -p ${WORK}
	mv * ${WORK}/
}

src_compile() {
	edo go run build.go
}

src_install() {
	dobin bin/syncthing
	base_src_install_docs
}