makedeb


superderper 0.1.2-1


superderper allows derper to admit clients from multiple tailnets.

Viewing /PKGBUILD.

View raw.

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

# Maintainer: Takase <takase1121 at proton dot me>

pkgname=superderper
pkgver=0.1.2
pkgrel=1

pkgdesc='superderper allows derper to admit clients from multiple tailnets.'
url='https://github.com/takase1121/superderper'
arch=('amd64' 'arm64')
license=('MIT')

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

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

source=("$pkgname-$pkgver.tar.gz::https://github.com/takase1121/superderper/archive/v$pkgver.tar.gz")
sha256sums=('edb8a65846f7584d4c5e394ca531fe08bd8524526ebe19cdb64572e1ed391f29')

build() {
	cd "$srcdir/$pkgname-$pkgver"
	go build -buildmode=pie -ldflags "-linkmode=external -extldflags=$LDFLAGS"
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -Dm644 superderper.service "$pkgdir/usr/lib/systemd/system/superderper.service"
	install -Dm644 tailscaled-derper@.service "$pkgdir/usr/lib/systemd/system/tailscaled-derper@.service"
	install -Dm644 superderper.conf "$pkgdir/etc/default/superderper"
	install -Dm644 tailscaled-derper.conf "$pkgdir/etc/default/tailscaled-derper"

	install -Dm755 -t "$pkgdir/usr/bin" superderper
}