author | David Runge
<dvzrv@archlinux.org> 2021-04-16 14:09:02 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2021-04-16 14:09:02 UTC |
parent | 892cf2fc010e500b4dafba1545cb03420d3a7346 |
PKGBUILD | +14 | -4 |
diff --git a/PKGBUILD b/PKGBUILD index 4e46ab0..788ebe0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,8 +3,8 @@ # Contributor: Jingbei Li <i@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 @@ 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=('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 \