# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=tlstunnel pkgver=0.2.0 pkgrel=8 pkgdesc="TLS reverse proxy" url="https://sr.ht/~emersion/tlstunnel/" license="MIT" arch="all" depends="ca-certificates" makedepends="go scdoc" subpackages="$pkgname-doc $pkgname-openrc" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/tlstunnel/archive/v$pkgver.tar.gz $pkgname.initd config " builddir="$srcdir/tlstunnel-v$pkgver" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make GOFLAGS="$GOFLAGS" } check() { go test ./... } package() { make DESTDIR="$pkgdir" PREFIX=/usr BINDIR=/usr/sbin install install -Dm644 "$srcdir"/config "$pkgdir"/etc/tlstunnel/config install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } sha512sums=" bcf79dfbcc9ff950290d163fad416c8a85f2436274df695731967e5368a872f18cee054994da11d97f751a069d26ac8515c70051e8e16f55f36cc0a3292277d1 tlstunnel-0.2.0.tar.gz a03db8adbebf7718e99b0a8431a30d7873b85c5280375e59b9895e95152cb1ad43789fae8e000779195c5502fe03111c44369c31a01190317b61d7a7e3979374 tlstunnel.initd a4ec6c1ff057b9ad5d9e9294725dbc03f937669da30956c33c11da86f8122740eb9d4989e7dd0ad3032e7351e8bf1f8fa4d2320771aa24d227ff766d20c05258 config "