32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'libwebsockets'
|
|
pkgname=libwebsockets
|
|
version=3.2.2
|
|
revision=4
|
|
build_style=cmake
|
|
configure_args="-DLWS_WITH_LIBEV=ON -DLWS_WITH_LIBUV=ON -DLWS_WITH_HTTP2=ON
|
|
-DLWS_IPV6=ON -DLWS_HAVE_LIBCAP=ON"
|
|
makedepends="libcap-devel libev-devel libuv-devel libressl-devel zlib-devel"
|
|
short_desc="Lightweight client and server websocket library"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://libwebsockets.org"
|
|
changelog="https://raw.githubusercontent.com/warmcat/libwebsockets/v3.0-stable/changelog"
|
|
distfiles="https://github.com/warmcat/libwebsockets/archive/v${version}.tar.gz"
|
|
checksum=166d6e17cab64bfc10c2a71799c298284540a1fa63f6ea3de5caccb34502243c
|
|
|
|
CFLAGS="-Wno-error"
|
|
|
|
libwebsockets-devel_package() {
|
|
depends="libwebsockets>=${version}_${revision} libcap-devel libev-devel libressl-devel libuv-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/cmake
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|