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