blob: 84cdb74211ed7df1530147ea9a668f56e7ef661b (
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
|
# Maintainer: Brian Clemens <brian@tiuxo.com>
pkgname=zerotier-one-git
pkgver=pkgver
pkgrel=1
pkgdesc="Creates virtual Ethernet networks of almost unlimited size."
arch=('x86_64')
url="https://www.zerotier.com/index.html"
license=('GPL3')
depends=('gcc-libs' 'libnatpmp' 'miniupnpc')
makedepends=('ruby-ronn')
conflics=('zerotier-one')
source=("git+git://github.com/zerotier/ZeroTierOne.git#branch=dev")
sha512sums=('SKIP')
prepare() {
cd ZeroTierOne
sed -i 's/sbin/bin/' make-linux.mk debian/zerotier-one.service
}
build() {
cd ZeroTierOne
make
}
check() {
cd ZeroTierOne
make selftest
./zerotier-selftest
}
package() {
cd ZeroTierOne
make DESTDIR="$pkgdir" install
install -Dm644 debian/zerotier-one.service "$pkgdir"/usr/lib/systemd/system/zerotier-one.service
}
pkgver() {
cd ZeroTierOne
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
|