# Contributor: Kyle Parisi <kyleparisi@gmail.com> # Maintainer: Kyle Parisi <kyleparisi@gmail.com> pkgname=zerotier-one pkgver=1.1.14 pkgrel=1 pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks." url="https://www.zerotier.com/" arch="all" license="GPL3" 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 } md5sums="5e381f0864797886b3b3bf20beb49bba zerotier-one-1.1.14.tar.gz c6bc90e905d8a66c6dbffdd1d72290bf zerotier-one.initd" sha256sums="d206069ad21c665159cdececb0a20a21758849ad73d91234d709962b26f634af zerotier-one-1.1.14.tar.gz 680d01fbac0aff5ecf7238ddc8ce9dcb91c0d19ca14fd83ec5f0949983d256dd zerotier-one.initd" sha512sums="96806a5eab8204d01585c88dba426fb7d47337562074488f87eb81b7ece6643216e2f60adcf1677f9a61fa5ab5187b7569fc1b9565d7055ba106139b6363e7a5 zerotier-one-1.1.14.tar.gz a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c zerotier-one.initd"