crux-ports

My CRUX Linux ports
Log | Files | Refs | README

Pkgfile (691B)


      1 # Description:	an implementation of a new name-independent routing scheme
      2 #		and functions as an end-to-end encrypted IPv6 network
      3 # URL:		https://yggdrasil-network.github.io/
      4 # Maintainer:	Shokara Kou, shokara at kalli dot st
      5 # Depends on:	go
      6 
      7 name=yggdrasil
      8 version=0.4.2
      9 release=1
     10 source=(https://github.com/yggdrasil-network/yggdrasil-go/archive/refs/tags/v$version.tar.gz)
     11 
     12 build() {
     13 	cd $name-go-$version
     14 
     15 	# this way go module deps don't clog $HOME
     16 	export GOPATH=/tmp/go
     17 	export GOPROXY=direct
     18 
     19 	./build
     20 	install -Dm755 {yggdrasil,yggdrasilctl} -t $PKG/usr/bin
     21 
     22 	install -Dm755 $PKGMK_SOURCE_DIR/yggdrasil.rc -t $PKG/etc/rc.d
     23 	mv $PKG/etc/rc.d/yggdrasil.rc $PKG/etc/rc.d/yggdrasil
     24 }