aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-05-06 17:14:51 +0200
committerLeo <thinkabit.ukim@gmail.com>2022-05-10 19:30:35 +0000
commitdf9add888e4421c71b31c37ea05089c8df0728da (patch)
tree731d65dedb90bdfedbc6d521a4f7cbc8754efdb8
parent7e1b8cf45cf3784929d4b67f7bb7d3b21a7b64f2 (diff)
downloadaports-df9add888e4421c71b31c37ea05089c8df0728da.tar.gz
aports-df9add888e4421c71b31c37ea05089c8df0728da.tar.bz2
aports-df9add888e4421c71b31c37ea05089c8df0728da.tar.xz
main/libwebsockets: upgrade to 4.3.1
-rw-r--r--main/libwebsockets/APKBUILD26
1 files changed, 12 insertions, 14 deletions
diff --git a/main/libwebsockets/APKBUILD b/main/libwebsockets/APKBUILD
index 58b099cf0c..230105827c 100644
--- a/main/libwebsockets/APKBUILD
+++ b/main/libwebsockets/APKBUILD
@@ -1,14 +1,13 @@
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwebsockets
-pkgver=4.3.0
-pkgrel=1
+pkgver=4.3.1
+pkgrel=0
pkgdesc="C library for lightweight websocket clients and servers"
-url="https://libwebsockets.org"
+url="https://libwebsockets.org/"
arch="all"
license="MIT"
-options="!check"
-makedepends="cmake linux-headers openssl1.1-compat-dev zlib-dev libuv-dev"
+makedepends="cmake linux-headers openssl1.1-compat-dev zlib-dev libuv-dev samurai"
subpackages="$pkgname-doc $pkgname-dev $pkgname-test:_test $pkgname-evlib_uv:_evlib"
source="
libwebsockets-$pkgver.tar.gz::https://github.com/warmcat/libwebsockets/archive/v$pkgver.tar.gz
@@ -16,10 +15,10 @@ source="
"
build() {
- mkdir -p "$builddir"/build
- cd "$builddir"/build
+ #mkdir -p "$builddir"/build
+ #cd "$builddir"/build
- cmake .. \
+ cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
@@ -28,18 +27,19 @@ build() {
-DLWS_WITH_STATIC=OFF \
-DLWS_LINK_TESTAPPS_DYNAMIC=ON \
-DLWS_WITH_SDEVENT=OFF
- make
+ cmake --build build
}
# TODO: Use test subpkg to validate
check() {
- make check
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- make -C build DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}
_test() {
@@ -56,8 +56,6 @@ _evlib() {
}
sha512sums="
-52d9b4511fc484781108a3036f870905d4427fcbab02f3e84ee38f534ae7d1979c2cc3eec0719f4609226d4aae788a79fe7d99a8506537bbcf8fc3d9b8a7b478 libwebsockets-4.2.2.tar.gz
+3cc2daadd7d2587ce946209a31741662d98367f0f9f77a1555497bef6fc6acc6cb97f5196d6ecef2d13828bb5613c60cccada03d9a01a5c970a9cfd25baeb0ae libwebsockets-4.3.1.tar.gz
9325b7cadeb2ca8fb20b4759feb49fb255b1b14c432b7c8c3a1b793a49266bb4f69b78a9c72656039e94ba4fc59ca2c5e821ba33e4f133e72cab26786feb9d60 fix-version-string.patch
"
-sha512sums="7f183cb0417a902cb18e76431a8580d87db09c973483f3a129e138e4644b9d0e78e0539e985dc6286d9fe429edea7f63147864dc0413cf8e40fca3d67f9c3c42 libwebsockets-4.3.0.tar.gz
-9325b7cadeb2ca8fb20b4759feb49fb255b1b14c432b7c8c3a1b793a49266bb4f69b78a9c72656039e94ba4fc59ca2c5e821ba33e4f133e72cab26786feb9d60 fix-version-string.patch"