void-packages/srcpkgs/libwebsockets/template
2018-09-08 04:23:45 -03:00

32 lines
1 KiB
Bash

# Template file for 'libwebsockets'
pkgname=libwebsockets
version=3.0.1
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=cb0cdd8d0954fcfd97a689077568f286cdbb44111883e0a85d29860449c47cbf
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"
}
}