aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zerotier-one/APKBUILD
blob: 79752e9c76fd958882a1b01e6bdf2bf1c9d08810 (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.1.14
pkgrel=2
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="all"
license="GPL-3.0"
depends=""
makedepends="nodejs 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="e9fd3c4b6a59e6d6a53c45b0c83fd70a508c3322bbd6faaf41fe1227ba28408c16396965b3b5eab8a6853d079d921cb9e8e36d4bdcb012fa4688522a92f1a647  zerotier-one-1.1.14.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c  zerotier-one.initd"