void-packages/srcpkgs/libwebsockets/template
2019-08-19 09:53:12 +02:00

31 lines
1 KiB
Bash

# Template file for 'libwebsockets'
pkgname=libwebsockets
version=3.2.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.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=5e731c536a20d9c03ae611631db073f05cd77bf0906a8c30d2a13638d4c8c667
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"
}
}