# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ttyd pkgver=1.7.3 pkgrel=0 pkgdesc="Share your terminal over the web" url="https://tsl0922.github.io/ttyd" arch="all" license="MIT" depends="libwebsockets-evlib_uv" makedepends=" bsd-compat-headers cmake json-c-dev libuv-dev libwebsockets-dev openssl-dev>3 samurai zlib-dev " subpackages="$pkgname-doc" source="https://github.com/tsl0922/ttyd/archive/$pkgver/ttyd-$pkgver.tar.gz" build() { local crossopts= if [ "$CBUILD" != "$CHOST" ]; then crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=TRUE \ $crossopts cmake --build build } check() { ./build/ttyd --version } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" e0900e2b4620095717d0f32206d08177ce74bc2f24cd9c20793cc2e370a8ee961272b73698b0dda857360703df20378c080293dfdfd287ae863801d338c8b2a4 ttyd-1.7.3.tar.gz "