[arch-commits] Commit in libwebsockets/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue May 26 19:39:23 UTC 2020


    Date: Tuesday, May 26, 2020 @ 19:39:23
  Author: dvzrv
Revision: 635245

archrelease: copy trunk to community-x86_64

Added:
  libwebsockets/repos/community-x86_64/PKGBUILD
    (from rev 635244, libwebsockets/trunk/PKGBUILD)
Deleted:
  libwebsockets/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  121 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 62 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-26 19:39:18 UTC (rev 635244)
+++ PKGBUILD	2020-05-26 19:39:23 UTC (rev 635245)
@@ -1,59 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-# Contributor: Jingbei Li <i at jingbei.li>
-
-pkgname=libwebsockets
-pkgver=4.0.1
-pkgrel=1
-pkgdesc="C library for websocket clients and servers"
-arch=('x86_64')
-url="https://libwebsockets.org"
-depends=('openssl' 'libcap' 'libuv' 'libev')
-makedepends=('cmake')
-license=('LGPL')
-source=($pkgname-$pkgver.tar.gz::https://github.com/warmcat/libwebsockets/archive/v$pkgver.tar.gz)
-sha256sums=('5b10ee0841a14303045617141370d5794b859b399084325c932dc0c03bf04c4b')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  mkdir build && cd build
-  cmake \
-        -D CMAKE_INSTALL_PREFIX:PATH=/usr \
-        -D LWS_WITH_HTTP2=ON \
-        -D LWS_IPV6=ON \
-        -D LWS_WITH_ZIP_FOPS=ON \
-        -D LWS_WITH_SOCKS5=ON \
-        -D LWS_WITH_RANGES=ON \
-        -D LWS_WITH_ACME=ON \
-        -D LWS_WITH_LIBUV=ON \
-        -D LWS_WITH_LIBEV=ON \
-        -D LWS_WITH_LIBEVENT=OFF \
-        -D LWS_WITH_FTS=ON \
-        -D LWS_WITH_THREADPOOL=ON \
-        -D LWS_UNIX_SOCK=ON \
-        -D LWS_WITH_HTTP_PROXY=ON \
-        -D LWS_WITH_DISKCACHE=ON \
-        -D LWS_WITH_LWSAC=ON \
-        -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
-        -D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
-        -D LWS_USE_BUNDLED_ZLIB=OFF \
-        -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_SERVER=OFF \
-        -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
-        -D LWS_WITHOUT_TEST_PING=ON \
-        -D LWS_WITHOUT_TEST_CLIENT=ON \
-        ..
-  make
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-  cd build
-  make DESTDIR="${pkgdir}" install
-}

Copied: libwebsockets/repos/community-x86_64/PKGBUILD (from rev 635244, libwebsockets/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-26 19:39:23 UTC (rev 635245)
@@ -0,0 +1,62 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: David Runge <dvzrv at archlinux.org>
+# Contributor: Jingbei Li <i at jingbei.li>
+
+pkgname=libwebsockets
+pkgver=4.0.13
+pkgrel=1
+pkgdesc="C library for websocket clients and servers"
+arch=('x86_64')
+url="https://libwebsockets.org"
+depends=('glibc' 'openssl' 'libuv' 'libev' 'zlib')
+makedepends=('cmake' 'libcap')
+provides=('libwebsockets.so')
+license=('MIT')
+source=($pkgname-$pkgver.tar.gz::https://github.com/warmcat/libwebsockets/archive/v$pkgver.tar.gz)
+sha256sums=('fb73e26868daeb819e0c1f73a8f50eb2fa0b5c1fc1811a87a2b7dc77479ae291')
+
+build() {
+  cd "$pkgname-$pkgver"
+  export CFLAGS+=" ${CPPFLAGS}"
+  export CXXFLAGS+=" ${CPPFLAGS}"
+  cmake -D CMAKE_INSTALL_PREFIX=/usr \
+        -D CMAKE_BUILD_TYPE='None' \
+        -D LWS_WITH_HTTP2=ON \
+        -D LWS_IPV6=ON \
+        -D LWS_WITH_ZIP_FOPS=ON \
+        -D LWS_WITH_SOCKS5=ON \
+        -D LWS_WITH_RANGES=ON \
+        -D LWS_WITH_ACME=ON \
+        -D LWS_WITH_LIBUV=ON \
+        -D LWS_WITH_LIBEV=ON \
+        -D LWS_WITH_LIBEVENT=OFF \
+        -D LWS_WITH_FTS=ON \
+        -D LWS_WITH_THREADPOOL=ON \
+        -D LWS_UNIX_SOCK=ON \
+        -D LWS_WITH_HTTP_PROXY=ON \
+        -D LWS_WITH_DISKCACHE=ON \
+        -D LWS_WITH_LWSAC=ON \
+        -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
+        -D LWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
+        -D LWS_USE_BUNDLED_ZLIB=OFF \
+        -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_SERVER=OFF \
+        -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
+        -D LWS_WITHOUT_TEST_PING=ON \
+        -D LWS_WITHOUT_TEST_CLIENT=ON \
+        -Wno-dev \
+        -B build \
+        -S .
+  make VERBOSE=1 -C build
+}
+
+package() {
+  depends+=('libcap.so')
+  cd "$pkgname-$pkgver"
+  make DESTDIR="${pkgdir}" install -C build
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}


More information about the arch-commits mailing list