1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: David Runge <dvzrv@archlinux.org>
3 # Contributor: Jingbei Li <i@jingbei.li>
8 pkgdesc="C library for websocket clients and servers"
10 url="https://libwebsockets.org"
12 depends=(glibc openssl libuv libev zlib)
13 makedepends=(cmake glib2 libcap)
14 provides=(libwebsockets.so)
15 source=($pkgname-$pkgver.tar.gz::https://github.com/warmcat/$pkgname/archive/v$pkgver.tar.gz)
16 sha512sums=('68d18574dea0563fa4f080c5d0d1cfe21a115bffdb17c6190f6741998f1e5db0739e252ef344ffe6fa4bd6781372456b240539471dd2aa900e43759e0f2d42ad')
17 b2sums=('3b8657b79828102cbfba71ea789acd3b7aec7faaa6317974d182b3cb4b5091d8efcf1f184278f71674624a0f1968450ab056e1d91f9faf2c35c67c6c6f4cb695')
20 cmake -D CMAKE_INSTALL_PREFIX=/usr \
21 -D CMAKE_BUILD_TYPE=None \
22 -D DISABLE_WERROR=ON \
24 -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
26 -D LWS_WITH_DISKCACHE=ON \
27 -D LWS_WITH_EXTERNAL_POLL=ON \
30 -D LWS_WITH_HTTP2=ON \
31 -D LWS_WITH_HTTP_PROXY=ON \
32 -D LWS_WITH_LIBEV=ON \
33 -D LWS_WITH_LIBEVENT=OFF \
34 -D LWS_WITH_LIBUV=ON \
35 -D LWS_WITH_LWSAC=ON \
36 -D LWS_WITH_RANGES=ON \
37 -D LWS_WITH_SOCKS5=ON \
38 -D LWS_WITH_STATIC=OFF \
39 -D LWS_WITH_THREADPOOL=ON \
40 -D LWS_WITH_ZIP_FOPS=ON \
41 -D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
42 -D LWS_WITHOUT_BUILTIN_SHA1=ON \
43 -D LWS_WITHOUT_CLIENT=OFF \
44 -D LWS_WITHOUT_SERVER=OFF \
45 -D LWS_WITHOUT_TESTAPPS=ON \
46 -D LWS_WITHOUT_TEST_CLIENT=ON \
47 -D LWS_WITHOUT_TEST_PING=ON \
48 -D LWS_WITHOUT_TEST_SERVER=OFF \
49 -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
54 make VERBOSE=1 -C build
58 depends+=(libcap.so libglib-2.0.so)
60 make DESTDIR="$pkgdir" install -C build
61 install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"