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

David Runge dvzrv at gemini.archlinux.org
Mon Jan 17 18:13:51 UTC 2022


    Date: Monday, January 17, 2022 @ 18:13:51
  Author: dvzrv
Revision: 434617

upgpkg: libwebsockets 4.3.1-1: Upgrade to 4.3.1.

Remove unneeded prepare() by using DISABLE_WERROR option.
Remove LWS_BUILD_HASH option (is set to unknown if no git present).
Simplify calls to cmake/make.
Simplify quoting in file.

Modified:
  libwebsockets/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++------------------------
 1 file changed, 14 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-17 18:01:52 UTC (rev 434616)
+++ PKGBUILD	2022-01-17 18:13:51 UTC (rev 434617)
@@ -3,33 +3,23 @@
 # Contributor: Jingbei Li <i at jingbei.li>
 
 pkgname=libwebsockets
-pkgver=4.3.0
+pkgver=4.3.1
 pkgrel=1
 pkgdesc="C library for websocket clients and servers"
-arch=('x86_64')
+arch=(x86_64)
 url="https://libwebsockets.org"
-license=('MIT')
-depends=('glibc' 'openssl' 'libuv' 'libev' 'zlib')
-makedepends=('cmake' 'glib2' 'libcap')
-provides=('libwebsockets.so')
+license=(MIT)
+depends=(glibc openssl libuv libev zlib)
+makedepends=(cmake glib2 libcap)
+provides=(libwebsockets.so)
 source=("$pkgname-$pkgver.tar.gz::https://github.com/warmcat/libwebsockets/archive/v$pkgver.tar.gz")
-sha512sums=('7f183cb0417a902cb18e76431a8580d87db09c973483f3a129e138e4644b9d0e78e0539e985dc6286d9fe429edea7f63147864dc0413cf8e40fca3d67f9c3c42')
-b2sums=('6ea48fedf3755f55885f32bc289513182cf735472c161f15d720a76ddfa54e5e2c2d93a343f98d941d14b88f8ca8a13039922f8669b85562c5c0c4312f878b98')
+sha512sums=('3cc2daadd7d2587ce946209a31741662d98367f0f9f77a1555497bef6fc6acc6cb97f5196d6ecef2d13828bb5613c60cccada03d9a01a5c970a9cfd25baeb0ae')
+b2sums=('420343dd358e4ca45d0cadde7f0a6398dbd5043c4cd2c1a70f32dc9b5ef4cb222239971c4ce758ee156deac4d06bd18289a8e975a7f41508abfdcb05870994f6')
 
-
-prepare() {
-  cd "$pkgname-$pkgver"
-  # -Werror, not even once
-  sed '/Werror/d' -i CMakeLists.txt
-}
-
 build() {
-  cd "$pkgname-$pkgver"
-  # NOTE: set LWS_BUILD_HASH explicitely as it can otherwise only be set using
-  # git
   cmake -D CMAKE_INSTALL_PREFIX=/usr \
-        -D CMAKE_BUILD_TYPE='None' \
-        -D LWS_BUILD_HASH="no_hash" \
+        -D CMAKE_BUILD_TYPE=None \
+        -D DISABLE_WERROR=ON \
         -D LWS_IPV6=ON \
         -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
         -D LWS_WITH_ACME=ON \
@@ -60,13 +50,13 @@
         -D LWS_UNIX_SOCK=ON \
         -Wno-dev \
         -B build \
-        -S .
+        -S "$pkgname-$pkgver"
   make VERBOSE=1 -C build
 }
 
 package() {
-  depends+=('libcap.so' 'libglib-2.0.so')
-  cd "$pkgname-$pkgver"
+  depends+=(libcap.so libglib-2.0.so)
+
   make DESTDIR="${pkgdir}" install -C build
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 "$pkgname-$pkgver/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list