summaryrefslogtreecommitdiff
path: root/testing/sish/APKBUILD
blob: 53b35bddb2fd468d21c53dc1303eddfc0344d193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=sish
pkgver=2.9.2
pkgrel=1
pkgdesc="HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH"
url="https://github.com/antoniomika/sish"
# s390x, riscv64: doesn't compile
arch="all !s390x !riscv64"
license="MIT"
makedepends="go"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="https://github.com/antoniomika/sish/archive/refs/tags/v$pkgver/sish-$pkgver.tar.gz
	sish.initd
	sish.confd
	"
options="!check" # no tests provided by upstream

build() {
	go build -o sish
}

package() {
	install -Dm755 sish "$pkgdir"/usr/bin/sish
	install -Dm644 config.example.yml "$pkgdir"/etc/sish/config.yml

	install -Dm755 "$srcdir"/sish.initd "$pkgdir"/etc/init.d/sish
	install -Dm644 "$srcdir"/sish.confd "$pkgdir"/etc/conf.d/sish
}

sha512sums="
295bc4a4b881bc096c2e719825d94677ebf4b26a69bc3e60c29feb727e2cd75d89b1496462b749a76edc1777f451c2ba062b448f06bd376ca2a4c1e63d9d504f  sish-2.9.2.tar.gz
8d810e48e3106babdce734e4f83249c62de5b562c7b1c50a33914c426b5406f958d3b5868f68af1f1f766142b5cd1ef60f19457f059ff6f1985cae6001d79398  sish.initd
4b1e752dcd49ce7d8f145ad0b8bc3ea5a86dc322dc61048364a7c36386dfb21ea8b243d41bebc3db96c9c490f6b6e7e006536fe4ebfd27078f5b32181b8dd5d4  sish.confd
"