# Template file for 'ttyd'
pkgname=ttyd
version=1.7.7
revision=1
build_style=cmake
hostmakedepends="pkg-config xxd"
makedepends="libwebsockets-devel json-c-devel openssl-devel zlib-devel
 libuv-devel"
short_desc="Share your terminal over the web"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="MIT"
homepage="https://tsl0922.github.io/ttyd/"
distfiles="https://github.com/tsl0922/ttyd/archive/refs/tags/${version}.tar.gz"
checksum=039dd995229377caee919898b7bd54484accec3bba49c118e2d5cd6ec51e3650

if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
	makedepends+=" musl-legacy-compat"
fi

post_install() {
	vlicense LICENSE
}
