author | David Runge
<dvzrv@archlinux.org> 2022-01-17 18:13:51 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2022-01-17 18:13:51 UTC |
parent | c894969e9478ebe7df3a9af18f7d7c45e9b5b31b |
PKGBUILD | +14 | -24 |
diff --git a/PKGBUILD b/PKGBUILD index bdc2db9..a0bce44 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,33 +3,23 @@ # Contributor: Jingbei Li <i@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') - - -prepare() { - cd "$pkgname-$pkgver" - # -Werror, not even once - sed '/Werror/d' -i CMakeLists.txt -} +sha512sums=('3cc2daadd7d2587ce946209a31741662d98367f0f9f77a1555497bef6fc6acc6cb97f5196d6ecef2d13828bb5613c60cccada03d9a01a5c970a9cfd25baeb0ae') +b2sums=('420343dd358e4ca45d0cadde7f0a6398dbd5043c4cd2c1a70f32dc9b5ef4cb222239971c4ce758ee156deac4d06bd18289a8e975a7f41508abfdcb05870994f6') 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 @@ build() { -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}" }