makedeb


derper 1.68.0-1


Tailscale runs DERP relay servers to help connect your nodes.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for derper.

# Maintainer: Takase <takase1121@proton.me>

pkgname=derper
pkgver=1.68.0
pkgrel=1

pkgdesc='Tailscale runs DERP relay servers to help connect your nodes.'
url='https://github.com/tailscale/tailscale'
arch=('amd64' 'arm64')
license=('BSD-3-Clause')

depends=('libc6')
makedepends=('golang-go>=2:1.22.0' 'git')

options=(!lto)
backup=('/etc/default/derper')


source=("derper-v$pkgver.tar.gz::https://github.com/tailscale/tailscale/archive/v$pkgver.tar.gz"
        derper.service
        derper.conf)

sha256sums=('b217e4190e38b9b9799c7749307d207385979ee6da95a16634fc7279d1658314'
            '72f9f5774f667a24215279713c6d8ccd1a4414340d5c91dd03f07346c0d4f60c'
            'ecaebd5f1fb0853464afeece438269303e8590aec8689554516036575deabcfc')

build() {
  cd tailscale-$pkgver
  go build -buildmode=pie -ldflags "-linkmode=external -extldflags=$LDFLAGS" ./cmd/derper
}

package() {
  install -Dm644 derper.service "$pkgdir"/usr/lib/systemd/system/derper.service
  install -Dm644 derper.conf "${pkgdir}"/etc/default/derper

  cd tailscale-$pkgver
  install -Dm755 -t "$pkgdir"/usr/bin derper
}