blob: 410447ae59db1885f0c81e1f5adef88077ac6f3a (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=syncthing13
_realname=syncthing
pkgver=0.13.10
pkgrel=1
pkgdesc="Open Source Continuous File Synchronization"
url="http://syncthing.net/"
arch="all !ppc64le"
license="MPLv2"
pkgusers="$_realname"
pkggroups="$_realname"
makedepends="go"
install="$pkgname.pre-install"
options="!strip"
source="$_realname-$pkgver.tar.gz::https://github.com/syncthing/syncthing/archive/v$pkgver.tar.gz
net-30df40a6a17d00a985343756f9b1418c6897866e.tar.gz::https://github.com/golang/net/archive/30df40a6a17d00a985343756f9b1418c6897866e.tar.gz
$_realname.confd
$_realname.initd"
builddir="$srcdir/src/github.com/$_realname"
prepare() {
default_prepare
mkdir -p "$builddir"
ln -s "$srcdir"/$_realname-$pkgver "$builddir"/$_realname
# fix IPv6 definition errors on s390x, remove when upstream
# updates vendor manifest!
rm -r "$builddir"/$_realname/vendor/golang.org/x/net
ln -s "$srcdir"/net-* "$builddir"/$_realname/vendor/golang.org/x/net
}
build() {
cd "$builddir"/$_realname
GOPATH="$srcdir" go run build.go -no-upgrade -version=v$pkgver
}
package() {
mkdir -p "$pkgdir"/usr/bin
install -d -o $_realname -g $_realname "$pkgdir"/var/lib/$_realname
mv "$builddir"/$_realname/bin/* "$pkgdir"/usr/bin
install -D -m755 "$srcdir"/$_realname.initd \
"$pkgdir"/etc/init.d/$_realname
install -D -m644 "$srcdir"/$_realname.confd \
"$pkgdir"/etc/conf.d/$_realname
}
sha512sums="199c38644a7e5d43777ca2e497d5304d8e77485d21aeed9a00efc74dd98bfb0c473dd0bf3230b8e1e9742315915419f198bb8d0a9b294d2f6fe918b6e0175812 syncthing-0.13.10.tar.gz
6f8705b61f6447328cd82e1b676fbfcb71dbd9aada5a592993b579c310fb617d7d370c0e11b8f1e8e04e4fdbbf336a1a5a540394141cc1eda3bf53d91b0f69f1 net-30df40a6a17d00a985343756f9b1418c6897866e.tar.gz
b19cc3d802caa33f4d06852de590d2d984c12cf27d0540162cd7195da4f3f149c83c72e7a10f385b32b27fff6f39d33698e7402442a3f32a9da136c5d19059ae syncthing.confd
21fa7b0090e579ad0f02bb8cc9a78736eb99811613823bf12d477262da2281543d07b47ae0888e2e3876a687bf4cab3c89405447373a9c5ab2915989c5f9dce8 syncthing.initd"
|