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)
16 source=($pkgname-$pkgver.tar.gz::https://github.com/warmcat/$pkgname/archive/v$pkgver.tar.gz)
17 sha512sums=('68d18574dea0563fa4f080c5d0d1cfe21a115bffdb17c6190f6741998f1e5db0739e252ef344ffe6fa4bd6781372456b240539471dd2aa900e43759e0f2d42ad')
18 b2sums=('3b8657b79828102cbfba71ea789acd3b7aec7faaa6317974d182b3cb4b5091d8efcf1f184278f71674624a0f1968450ab056e1d91f9faf2c35c67c6c6f4cb695')
21 cmake -D CMAKE_INSTALL_PREFIX=/usr \
22 -D CMAKE_BUILD_TYPE=None \
23 -D DISABLE_WERROR=ON \
25 -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
27 -D LWS_WITH_DISKCACHE=ON \
28 -D LWS_WITH_EXTERNAL_POLL=ON \
31 -D LWS_WITH_HTTP2=ON \
32 -D LWS_WITH_HTTP_PROXY=ON \
33 -D LWS_WITH_LIBEV=ON \
34 -D LWS_WITH_LIBEVENT=OFF \
35 -D LWS_WITH_LIBUV=ON \
36 -D LWS_WITH_LWSAC=ON \
37 -D LWS_WITH_RANGES=ON \
38 -D LWS_WITH_SOCKS5=ON \
39 -D LWS_WITH_STATIC=OFF \
40 -D LWS_WITH_THREADPOOL=ON \
41 -D LWS_WITH_ZIP_FOPS=ON \
42 -D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
43 -D LWS_WITHOUT_BUILTIN_SHA1=ON \
44 -D LWS_WITHOUT_CLIENT=OFF \
45 -D LWS_WITHOUT_SERVER=OFF \
46 -D LWS_WITHOUT_TESTAPPS=ON \
47 -D LWS_WITHOUT_TEST_CLIENT=ON \
48 -D LWS_WITHOUT_TEST_PING=ON \
49 -D LWS_WITHOUT_TEST_SERVER=OFF \
50 -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
55 make VERBOSE=1 -C build
59 depends+=(libcap.so libglib-2.0.so)
61 make DESTDIR="$pkgdir" install -C build
62 install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"