git » libwebsockets.git » commit 892cf2f

Rebuild to add missing option for mosquitto.

author David Runge
2021-04-07 07:42:16 UTC
committer David Runge
2021-04-07 07:42:16 UTC
parent 0da07026fe951d353ea3dc14c85d3d9956099098

Rebuild to add missing option for mosquitto.

Add LWS_WITH_EXTERNAL_POLL=ON so that mosquitto may make use of websockets:
https://bugs.archlinux.org/task/70321
Order all cmake options alphabetically for better readability.

PKGBUILD +17 -16

diff --git a/PKGBUILD b/PKGBUILD
index 2a66d91..4e46ab0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=libwebsockets
 pkgver=4.1.6
-pkgrel=1
+pkgrel=2
 pkgdesc="C library for websocket clients and servers"
 arch=('x86_64')
 url="https://libwebsockets.org"
@@ -20,33 +20,34 @@ build() {
   cd "$pkgname-$pkgver"
   cmake -D CMAKE_INSTALL_PREFIX=/usr \
         -D CMAKE_BUILD_TYPE='None' \
-        -D LWS_WITH_HTTP2=ON \
         -D LWS_IPV6=ON \
-        -D LWS_WITH_GLIB=ON \
-        -D LWS_WITH_ZIP_FOPS=ON \
-        -D LWS_WITH_SOCKS5=ON \
-        -D LWS_WITH_RANGES=ON \
+        -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
         -D LWS_WITH_ACME=ON \
-        -D LWS_WITH_LIBUV=ON \
-        -D LWS_WITH_LIBEV=ON \
-        -D LWS_WITH_LIBEVENT=OFF \
+        -D LWS_WITH_DISKCACHE=ON \
+        -D LWS_WITH_EXTERNAL_POLL=ON \
         -D LWS_WITH_FTS=ON \
-        -D LWS_WITH_THREADPOOL=ON \
-        -D LWS_UNIX_SOCK=ON \
+        -D LWS_WITH_GLIB=ON \
+        -D LWS_WITH_HTTP2=ON \
         -D LWS_WITH_HTTP_PROXY=ON \
-        -D LWS_WITH_DISKCACHE=ON \
+        -D LWS_WITH_LIBEV=ON \
+        -D LWS_WITH_LIBEVENT=OFF \
+        -D LWS_WITH_LIBUV=ON \
         -D LWS_WITH_LWSAC=ON \
-        -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
+        -D LWS_WITH_RANGES=ON \
+        -D LWS_WITH_SOCKS5=ON \
+        -D LWS_WITH_STATIC=OFF \
+        -D LWS_WITH_THREADPOOL=ON \
+        -D LWS_WITH_ZIP_FOPS=ON \
         -D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
         -D LWS_WITHOUT_BUILTIN_SHA1=ON \
-        -D LWS_WITH_STATIC=OFF \
         -D LWS_WITHOUT_CLIENT=OFF \
         -D LWS_WITHOUT_SERVER=OFF \
         -D LWS_WITHOUT_TESTAPPS=ON \
+        -D LWS_WITHOUT_TEST_CLIENT=ON \
+        -D LWS_WITHOUT_TEST_PING=ON \
         -D LWS_WITHOUT_TEST_SERVER=OFF \
         -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-        -D LWS_WITHOUT_TEST_PING=ON \
-        -D LWS_WITHOUT_TEST_CLIENT=ON \
+        -D LWS_UNIX_SOCK=ON \
         -Wno-dev \
         -B build \
         -S .