aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-12-03 08:29:49 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-03 08:46:46 +0100
commit702db46652c3d02599a600cb5db64af919226406 (patch)
tree00f600afa6c995c9f2b06a852c2c14bf0babee59
parent9aa262e3c8f9e0b14b924c484225b40d6fd2618b (diff)
downloadaports-702db46652c3d02599a600cb5db64af919226406.tar.gz
aports-702db46652c3d02599a600cb5db64af919226406.tar.bz2
aports-702db46652c3d02599a600cb5db64af919226406.tar.xz
testing/ws: new aport
https://github.com/machinezone/IXWebSocket websocket and http client and server command line swiss army ref #11007
-rw-r--r--testing/ws/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ws/APKBUILD b/testing/ws/APKBUILD
new file mode 100644
index 0000000000..9d95e854f0
--- /dev/null
+++ b/testing/ws/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=ws
+pkgver=7.4.1
+pkgrel=0
+pkgdesc="websocket and http client and server command line swiss army"
+options="!check"
+url="https://github.com/machinezone/IXWebSocket"
+arch="all"
+license="BSD-3-Clause"
+makedepends="cmake openssl-dev zlib-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/machinezone/IXWebSocket/archive/v$pkgver.tar.gz"
+builddir="$srcdir/IXWebSocket-$pkgver"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ mkdir build && cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DUSE_TLS=1 \
+ -DUSE_WS=1 \
+ ${CMAKE_CROSSOPTS} ..
+ make
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+
+ # We don't care about anything but the ws binary
+ rm -rf "$pkgdir"/usr/include
+ rm -rf "$pkgdir"/usr/lib
+}
+sha512sums="6e9407f21bff488d17aa06118532741a728e9978a67a8630830ea3fe513278d9a084758800ea2c67ba18fe2a6f0f3d32c0994291c5459848b3f4b422f29f21a9 ws-7.4.1.tar.gz"