[arch-commits] Commit in libwebsockets/trunk (PKGBUILD)

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


    Date: Tuesday, May 26, 2020 @ 19:39:18
  Author: dvzrv
Revision: 635244

upgpkg: libwebsockets 4.0.13-1: Upgrading to 4.0.13.

Adding (missing) dependency on zlib.
Adding all available sodeps in package() and moving the respective packages to makedepends.
Adding libwebsockets.so to provides.
Switching to correct license (MIT).
Applying latest cmake packaging guidelines.

Modified:
  libwebsockets/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-26 19:35:38 UTC (rev 635243)
+++ PKGBUILD	2020-05-26 19:39:18 UTC (rev 635244)
@@ -1,24 +1,26 @@
 # 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.1
+pkgver=4.0.13
 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')
+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=('5b10ee0841a14303045617141370d5794b859b399084325c932dc0c03bf04c4b')
+sha256sums=('fb73e26868daeb819e0c1f73a8f50eb2fa0b5c1fc1811a87a2b7dc77479ae291')
 
 build() {
   cd "$pkgname-$pkgver"
-
-  mkdir build && cd build
-  cmake \
-        -D CMAKE_INSTALL_PREFIX:PATH=/usr \
+  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 \
@@ -46,14 +48,15 @@
         -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
         -D LWS_WITHOUT_TEST_PING=ON \
         -D LWS_WITHOUT_TEST_CLIENT=ON \
-        ..
-  make
+        -Wno-dev \
+        -B build \
+        -S .
+  make VERBOSE=1 -C build
 }
 
 package() {
+  depends+=('libcap.so')
   cd "$pkgname-$pkgver"
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-  cd build
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" install -C build
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }


More information about the arch-commits mailing list