aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zerotier-one/APKBUILD
blob: 186c61ac431e20a0f10d64246e2a34d8aceb5961 (plain) (blame)
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
# Contributor: Kyle Parisi <kyleparisi@gmail.com>
# Maintainer: Kyle Parisi <kyleparisi@gmail.com>
pkgname=zerotier-one
pkgver=1.2.4
pkgrel=4
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="x86_64"
license="GPL-3.0"
depends=""
makedepends="nodejs-npm linux-headers"
install=""
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive/${pkgver}.tar.gz
	zerotier-one.initd
	"

builddir="$srcdir"/ZeroTierOne-$pkgver
build() {
	cd "$builddir"
	sed -i.bak s:/bash:/sh:g ./doc/build.sh
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd \
			"$pkgdir"/etc/init.d/$pkgname || return 1
}

sha512sums="82adb110208d24ae2745e3839810afcac87955de050ebfe0517a7dc2a875881dafd40c1b16a041742d8c4d0f6513abcc71d6ea3e06c2fb89b47be2630a500363  zerotier-one-1.2.4.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c  zerotier-one.initd"