git » libwebsockets.git » commit 0778c21

libwebsockets 4.3.3

author Urja (ARMLFS builder)
2025-03-02 10:21:48 UTC
committer Urja (ARMLFS builder)
2025-03-02 10:21:48 UTC
parent b7af759cb997cf7f7e8026630f8411205186a927

libwebsockets 4.3.3

.SRCINFO +4 -3
.gitignore +2 -0
PKGBUILD +7 -7

diff --git a/.SRCINFO b/.SRCINFO
index 75f72c9..27c273b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
 pkgbase = libwebsockets
 	pkgdesc = C library for websocket clients and servers
 	pkgver = 4.3.3
-	pkgrel = 1
+	pkgrel = 2
 	url = https://libwebsockets.org
 	arch = x86_64
+	arch = armv7h
 	license = MIT
 	makedepends = cmake
 	makedepends = glib2
-	makedepends = libcap
 	depends = glibc
 	depends = openssl
 	depends = libuv
 	depends = libev
 	depends = zlib
+	depends = libcap
 	provides = libwebsockets.so
 	source = libwebsockets-4.3.3.tar.gz::https://github.com/warmcat/libwebsockets/archive/v4.3.3.tar.gz
 	sha512sums = 2ffd248ddf283369725097ca7410f947fe0389c360b329c76f0754afab4ba87c20a0687c5e7b8bd991b157f9d20c6faa3049757b3398e66d08662c3aa7ff9658
@@ -24,5 +25,5 @@ pkgname = libwebsockets
 	depends = libuv
 	depends = libev
 	depends = zlib
-	depends = libcap.so
+	depends = libcap
 	depends = libglib-2.0.so
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a43258a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/src/
+/pkg/
diff --git a/PKGBUILD b/PKGBUILD
index 82e3545..be5034f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,13 @@
 
 pkgname=libwebsockets
 pkgver=4.3.3
-pkgrel=1
+pkgrel=2
 pkgdesc="C library for websocket clients and servers"
-arch=(x86_64)
+arch=(x86_64 'armv7h')
 url="https://libwebsockets.org"
 license=(MIT)
-depends=(glibc openssl libuv libev zlib)
-makedepends=(cmake glib2 libcap)
+depends=(glibc openssl libuv libev zlib libcap)
+makedepends=(cmake glib2)
 provides=(libwebsockets.so)
 source=($pkgname-$pkgver.tar.gz::https://github.com/warmcat/$pkgname/archive/v$pkgver.tar.gz)
 sha512sums=('2ffd248ddf283369725097ca7410f947fe0389c360b329c76f0754afab4ba87c20a0687c5e7b8bd991b157f9d20c6faa3049757b3398e66d08662c3aa7ff9658')
@@ -19,8 +19,8 @@ b2sums=('24393e0238160767e77a428b1db8430ae5c6efa715e9d917a3fc64c8272e92c8617031c
 build() {
   # this uses malloc_usable_size, which is incompatible with fortification level 3
   # https://github.com/warmcat/libwebsockets/pull/2977
-  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
-  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+#  export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+#  export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
 
   cmake -D CMAKE_INSTALL_PREFIX=/usr \
         -D CMAKE_BUILD_TYPE=None \
@@ -60,7 +60,7 @@ build() {
 }
 
 package() {
-  depends+=(libcap.so libglib-2.0.so)
+  depends+=(libglib-2.0.so)
 
   make DESTDIR="$pkgdir" install -C build
   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"