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

David Runge dvzrv at archlinux.org
Fri Apr 16 14:09:03 UTC 2021


    Date: Friday, April 16, 2021 @ 14:09:02
  Author: dvzrv
Revision: 412718

upgpkg: libwebsockets 4.2.0-1: Upgrade to 4.2.0.

Remove the use of -Werror in prepare().
Set LWS_BUILD_HASH explicitely as it otherwise requires a clone of the repository.

Modified:
  libwebsockets/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-16 13:55:22 UTC (rev 412717)
+++ PKGBUILD	2021-04-16 14:09:02 UTC (rev 412718)
@@ -3,8 +3,8 @@
 # Contributor: Jingbei Li <i at jingbei.li>
 
 pkgname=libwebsockets
-pkgver=4.1.6
-pkgrel=2
+pkgver=4.2.0
+pkgrel=1
 pkgdesc="C library for websocket clients and servers"
 arch=('x86_64')
 url="https://libwebsockets.org"
@@ -13,13 +13,23 @@
 makedepends=('cmake' 'glib2' 'libcap')
 provides=('libwebsockets.so')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/warmcat/libwebsockets/archive/v$pkgver.tar.gz")
-sha512sums=('b83059b5405fe5c8bbfb6ef4cdfb66ce8b3fa2a660c013e64fa579f3ae09c70a6e3807d37ad4cff1d37b0c797959ba4e9c527be7e31520b3853161cfd6224a54')
-b2sums=('d6b8c96b8da4c177e7c730acb13bbba63996b1817bc0e0df36923c7ad3aabb6823f852c84bef865e85ed7eac1855273527ff6e92e413bbed8576388ce2ec7e3f')
+sha512sums=('e1fb5b204a030ded8dfe2a75c66ec8d1a2e6a67e82c7709fe3c4277e0ccb5fb40c18db04e73c640d07ef4516aa266ae8b102f802b2a41b80980260cb6921f369')
+b2sums=('9471d19b15decfee4407a596cb3f127534e12ac6bf49c81b04120a379ff8a8e1c7767e9a7e586ad69d5af23e869914c749da771f8db6431ac09718b971d261e0')
 
+
+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 LWS_IPV6=ON \
         -D LWS_LINK_TESTAPPS_DYNAMIC=ON \
         -D LWS_WITH_ACME=ON \



More information about the arch-commits mailing list