void-packages/srcpkgs/libwebsockets/template
2016-06-01 08:52:11 +02:00

29 lines
886 B
Bash

# Template file for 'libwebsockets'
pkgname=libwebsockets
version=2.0.2
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="https://github.com/warmcat/libwebsockets/archive/v$version.tar.gz"
checksum=7ab40b7c28b25d7a3776283219447876502163d89269b3c05739cfc3753525bc
CFLAGS="-Wno-error"
libwebsockets-devel_package() {
depends="libwebsockets>=${version}_${revision} libev-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/*.a"
vmove "usr/lib/*.so"
}
}