void-packages/srcpkgs/libwebsockets/template

29 lines
866 B
Bash

# Template file for 'libwebsockets'
pkgname=libwebsockets
version=2.4.2
revision=1
build_style=cmake
makedepends="zlib-devel libressl-devel libev-devel"
configure_args="-DLWS_WITH_LIBEV=1 -DLWS_WITH_HTTP2=1 -DLWS_USE_IPV6=1"
short_desc="Lightweight client and server websocket library"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2.1-only"
homepage="https://libwebsockets.org"
distfiles="https://github.com/warmcat/libwebsockets/archive/v$version.tar.gz"
checksum=73012d7fcf428dedccc816e83a63a01462e27819d5537b8e0d0c7264bfacfad6
CFLAGS="-Wno-error"
libwebsockets-devel_package() {
depends="libwebsockets>=${version}_${revision} libev-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/share/libwebsockets-test-server
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}