2026-05-04 16:24:03 +02:00

33 lines
1.2 KiB
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=websocketd
pkgver=0.4.2
pkgrel=0
pkgdesc="Like inetd, but for WebSockets. Turn any application that uses STDIO/STDOUT into a WebSocket server."
url="https://github.com/joewalnes/websocketd"
license="BSD-2-Clause"
arch="all"
# no test suite
# net required to download go dependencies
options="!check net"
makedepends="go curl"
source="$pkgname-$pkgver.tar.gz::https://github.com/barakplasma/websocketd/archive/refs/tags/$pkgver.tar.gz
make.patch"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
make websocketd
}
package() {
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
fe46126da96ea2fa301e04f4e2b60f012af403a47b77974a820e4d720fd956a8b3b71fcb9bcd8f9c129bda791f7cda629a49a13f2e4861fc72593e0607e7d529 websocketd-0.4.2.tar.gz
8f80bbbfcbaf4fbbb885f7daaec2733a3e0d0e27022e61f64eb7bcf81a9252c8df01d381b3cd8f47d3baf24bfaeb342c6654bf70e1a86f29a8eb3ecdf8499c8c make.patch
"