32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
# Template file for 'libwebsockets'
|
|
pkgname=libwebsockets
|
|
version=3.1.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"
|
|
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=db948be74c78fc13f1f1a55e76707d7baae3a1c8f62b625f639e8f2736298324
|
|
|
|
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"
|
|
}
|
|
}
|