blob: 7a95e0f93c7af20f3da35e3c74630c3bd25ea597 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
name=headscale
version=0.29.0
release=1
source="https://github.com/juanfont/headscale/archive/refs/tags/v$version/$name-$version.tar.gz
run"
sv="run"
build() {
export CGO_ENABLED=0
export GOPATH="$SRC/.gopath"
mkdir -p "$GOPATH"
go build \
-trimpath \
-buildmode=pie \
-ldflags="-X main.version=$version" \
-o headscale ./cmd/headscale
install -Dm755 headscale "$PKG/usr/bin/headscale"
install -Dm644 config-example.yaml "$PKG/etc/headscale/config.yaml"
install -dm755 "$PKG/var/lib/headscale"
}
|