blob: 3b680056b0539a68532a5d66448a5be339231678 (
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
|
# Description: an implementation of a new name-independent routing scheme
# and functions as an end-to-end encrypted IPv6 network
# URL: https://yggdrasil-network.github.io/
# Maintainer: Shokara Kou, shokara at kalli dot st
# Depends on: go
name=yggdrasil
version=0.4.2
release=1
source=(https://github.com/yggdrasil-network/yggdrasil-go/archive/refs/tags/v$version.tar.gz)
build() {
cd $name-go-$version
# this way go module deps don't clog $HOME
export GOPATH=/tmp/go
export GOPROXY=direct
./build
install -Dm755 {yggdrasil,yggdrasilctl} -t $PKG/usr/bin
install -Dm755 $PKGMK_SOURCE_DIR/yggdrasil.rc -t $PKG/etc/rc.d
mv $PKG/etc/rc.d/yggdrasil.rc $PKG/etc/rc.d/yggdrasil
}
|