void-packages/srcpkgs/libwebsockets/template
2016-02-21 00:33:38 +01:00

28 lines
898 B
Bash

# Template file for 'libwebsockets'
pkgname=libwebsockets
version=1.7.1
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="zlib-devel libressl-devel libev-devel"
configure_args="-DLWS_WITH_LIBEV=1 -DLWS_WITH_HTTP2=1 -DLWS_USE_IPV6=1"
short_desc="Lightweight client and server websocket library"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2"
homepage="https://libwebsockets.org"
distfiles="http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/snapshot/$pkgname-$version.tar.gz"
checksum=9a0c562413e727e12d199ff68b036c2984725293ee26874626340adc59df2354
CFLAGS="-Wno-error"
libwebsockets-devel_package() {
depends="libwebsockets>=${version}_${revision}"
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/*.a"
vmove "usr/lib/*.so"
}
}