diff --git a/testing/jami-daemon/APKBUILD b/testing/jami-daemon/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..5e3fe8e03d36ed02a54a0e088d267ed6215fa845 --- /dev/null +++ b/testing/jami-daemon/APKBUILD @@ -0,0 +1,79 @@ +# Contributor: Anjandev Momi <anjan@momi.ca> +# Maintainer: Anjandev Momi <anjan@momi.ca> +pkgname=jami-daemon +pkgver=0_git20221129 +pkgrel=0 +pkgdesc="Free and universal communication platform which preserves the users’ privacy and freedoms (daemon component)" +url="https://jami.net" +arch="all !ppc64le !s390x" # ppc64le and s390x: no webrtc-audio-processing +license="GPL-3.0-or-later" +makedepends=" + alsa-lib-dev + asio-dev + eudev-dev + fmt-dev + ffmpeg-dev + gnutls-dev + jsoncpp-dev + libarchive-dev + libgit2-dev + libsecp256k1-dev + libupnp-dev + meson + msgpack-cxx-dev + opendht-dev + pulseaudio-dev + restinio-dev + speex-dev + speexdsp-dev + sqlite-dev + webrtc-audio-processing-dev + yaml-cpp-dev + zlib-dev + " +subpackages="$pkgname-dev" +_commit=6f64b069a1c95a15b744d4044ad3d8032147439f +_pjprojectver=4af5d666d18837abaac94c8ec6bfc84984dcf1e2 +source="$pkgname-$pkgver.tar.gz::https://git.jami.net/savoirfairelinux/jami-daemon/-/archive/$_commit/jami-daemon-$_commit.tar.gz + pjproject-$_pjprojectver.tar.gz::https://github.com/savoirfairelinux/pjproject/archive/$_pjprojectver/pjproject-$_pjprojectver.tar.gz + " +builddir="$srcdir/$pkgname-$_commit" +options="!check" # https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/649 + +prepare() { + default_prepare + cp ../pjproject-$_pjprojectver.tar.gz contrib/tarballs + mkdir contrib/native +} + +build() { + cd contrib/native + ../bootstrap \ + --disable-downloads \ + --disable-all \ + --enable-pjproject + make DEPS_pjproject= + + cd "$builddir" + abuild-meson build \ + -Dinterfaces=library \ + -Dopensl=disabled \ + -Dportaudio=disabled \ + -Dtests=false \ + -Dpkg_config_path="$builddir/contrib/$(cc -dumpmachine)/lib/pkgconfig" + meson compile -C build +} + +#check() { +# make -k check +# meson test -C build --print-errorlogs +#} + +package() { + meson install -C build --destdir "$pkgdir" +} + +sha512sums=" +63b6cd0384cd58b18d2898086415d0ee8a352654a326255d570813d0da08ff8e485db46a0f82ec6ffae2108ae6218979e9c2190b2c9c95e41d1d8730fa165f35 jami-daemon-0_git20221129.tar.gz +3113daca372c84beda1f9f9a1b73f02ba7d565bb1d40662cc30bf741ec0ffda4e7d69034521073ce12f80498c071166a67959531e39abb865ea8d1e48564677f pjproject-4af5d666d18837abaac94c8ec6bfc84984dcf1e2.tar.gz +" diff --git a/testing/jami-qt/APKBUILD b/testing/jami-qt/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..32d2faa5c5e1e829b7a118563d849c9988be955f --- /dev/null +++ b/testing/jami-qt/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: Anjandev Momi <anjan@momi.ca> +# Maintainer: Anjandev Momi <anjan@momi.ca> +pkgname=jami-qt +pkgver=20220726 +pkgrel=0 +pkgdesc="Free and universal communication platform which preserves the users’ privacy and freedoms (Qt client)" +url="https://jami.net" +arch="all !s390x !ppc64le" # s390x and ppc64le: missing jami-daemon dependency +license="GPL-3.0-or-later" +# libnm not needed https://git.jami.net/savoirfairelinux/jami-client-qt/-/commit/e5d4a8ebf970ff5bd0dba0db0d0c8aa10cc4174d +depends="qt6-qtbase-sqlite" +makedepends=" + cmake + jami-daemon-dev + libqrencode-dev + python3 + qt6-qt5compat-dev + qt6-qtmultimedia-dev + qt6-qtnetworkauth-dev + qt6-qtpositioning-dev + qt6-qtsvg-dev + qt6-qttools-dev + qt6-qtwebchannel-dev + samurai + " +_commit=e481bb4eb0380276f6f1097d256ffdd51b87967b +source="$pkgname-$pkgver.tar.gz::https://git.jami.net/savoirfairelinux/jami-client-qt/-/archive/$_commit/jami-client-qt-$_commit.tar.gz + drop-qt-version-check.patch + fix-libavutil-linking.patch" +subpackages="$pkgname-lang" +builddir="$srcdir/jami-client-qt-$_commit" + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DENABLE_LIBWRAP=ON \ + -DWITH_WEBENGINE=false \ + -DENABLE_LIBRWAP=ON \ + -Wno-dev \ + $CMAKE_CROSSOPTS + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +lang() { + amove usr/share/jami/translations + +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +79fe9439ff135e192d424458832352431ee04454cdd365b604cf345cfc27998b6d30abf3203955731198c0037816ff24ce016b7123b76ab6747d00ac4703e7de jami-qt-20220726.tar.gz +5bc7d449bd7b1b1176361126ef58737c69262ca7cd2f6c96695c142a793a1eb74e1cfd2a10e6677eed3a47ffb3789c7f727d8ffbd8e708abfa2319b43d3d930f drop-qt-version-check.patch +8d5de691f49c4c7aa5cd085571eaaa23212bc87ccbcc1c29fd8a30e6e0f686b4301ccf351ff3577d03c7e2f3aab3d9d7754f5a65e8f1da2851168aec586a121d fix-libavutil-linking.patch +" diff --git a/testing/jami-qt/drop-qt-version-check.patch b/testing/jami-qt/drop-qt-version-check.patch new file mode 100644 index 0000000000000000000000000000000000000000..90c3ee38c287c434295b45ae7a0fca3c54005e9e --- /dev/null +++ b/testing/jami-qt/drop-qt-version-check.patch @@ -0,0 +1,19 @@ +Author: Bruno Pagani +URL: https://github.com/archlinux/svntogit-community/commit/0368876157edf0b25cb0ae1ee1eb99d155bf101f +Summary: Drop strict Qt version check. Qt is ABI stable and jami is not using any private API +---- +--- a/src/app/mainapplication.cpp ++++ b/src/app/mainapplication.cpp +@@ -100,12 +100,6 @@ ScreenInfo::setCurrentFocusWindow(QWindow* window) + MainApplication::MainApplication(int& argc, char** argv) + : QApplication(argc, argv) + { +- const char* qtVersion = qVersion(); +- qInfo() << "Using Qt runtime version:" << qtVersion; +- if (strncmp(qtVersion, QT_VERSION_STR, strnlen(qtVersion, sizeof qtVersion)) != 0) { +- qFatal("Qt build version mismatch! %s", QT_VERSION_STR); +- } +- + parseArguments(); + QObject::connect(this, &QApplication::aboutToQuit, [this] { cleanup(); }); + } diff --git a/testing/jami-qt/fix-libavutil-linking.patch b/testing/jami-qt/fix-libavutil-linking.patch new file mode 100644 index 0000000000000000000000000000000000000000..6ea234be0f638a579bc7a1d8a432afda210eef20 --- /dev/null +++ b/testing/jami-qt/fix-libavutil-linking.patch @@ -0,0 +1,40 @@ +From 6deb9b4724afe97fd13ae5270353604bb9e93d4f Mon Sep 17 00:00:00 2001 +From: Vladimir Stoiakin <VStoiakin@lavabit.com> +Date: Fri, 01 Jul 2022 21:03:09 +0300 +Subject: [PATCH] build: add dependency on libavutil for GNU/Linux + +Change-Id: I3d43fd9f5782f5ebf7db9b2cef6b5d294e7aa36c +--- + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6b88bf3..9c1e838 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -359,6 +359,7 @@ + endif() + + pkg_check_modules(XCB xcb) ++ pkg_check_modules(LIBAVUTIL libavutil>=55.75.100) + + include_directories( + ${LIBCLIENT_SRC_DIR} +@@ -366,7 +367,8 @@ + ${LIBNOTIFY_INCLUDE_DIRS} + ${LIBGDKPIXBUF_INCLUDE_DIRS} + ${GLIB_INCLUDE_DIRS} +- ${XCB_INCLUDE_DIRS}) ++ ${XCB_INCLUDE_DIRS} ++ ${LIBAVUTIL_INCLUDE_DIRS}) + + set(JAMI_DATA_PREFIX "${CMAKE_INSTALL_PREFIX}/share") + +@@ -548,7 +550,8 @@ + ${LIBGDKPIXBUF_LIBRARIES} + ${GLIB_LIBRARIES} + ${GIO_LIBRARIES} +- ${XCB_LIBRARIES}) ++ ${XCB_LIBRARIES} ++ ${LIBAVUTIL_LIBRARIES}) + + # Installation rules + install( diff --git a/testing/opendht/APKBUILD b/testing/opendht/APKBUILD index 0cb80861faa6656c2dc73a8cccb8f0471d21e3be..f724181e4234b43877f4f7918d301aeabb35f443 100644 --- a/testing/opendht/APKBUILD +++ b/testing/opendht/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Gavin Henry <ghenry@sentrypeer.org> # Maintainer: Gavin Henry <ghenry@sentrypeer.org> pkgname=opendht -pkgver=2.4.4 -pkgrel=3 +pkgver=2.4.10 +pkgrel=0 pkgdesc="C++17 Distributed Hash Table implementation" url="https://github.com/savoirfairelinux/opendht" arch="all" @@ -12,17 +12,20 @@ makedepends=" asio-dev cmake cython + fmt-dev gnutls-dev + http-parser-dev jsoncpp-dev msgpack-cxx-dev nettle-dev py3-setuptools python3-dev readline-dev + restinio-dev samurai " subpackages="$pkgname-static py3-$pkgname:_py3 $pkgname-libs $pkgname-dev $pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/opendht/archive/refs/tags/$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/savoirfairelinux/opendht/archive/refs/tags/v$pkgver.tar.gz" [ "$CARCH" = "riscv64" ] && options="$options textrels" @@ -38,6 +41,8 @@ build() { -DOPENDHT_C=ON \ -DOPENDHT_TOOLS=ON \ -DOPENDHT_PYTHON=ON \ + -DOPENDHT_HTTP=ON \ + -DOPENDHT_PUSH_NOTIFICATIONS=ON \ -G Ninja \ $CMAKE_CROSSOPTS . cmake --build build @@ -64,5 +69,5 @@ _py3() { } sha512sums=" -f6d665485a4a82b292dc50e3da4a5e281d3e99e8735d7537d7426cd4efa8d70ba8137e4d9eb0feaae5373af431b165443d516f32296c107366614f587b78f338 opendht-2.4.4.tar.gz +19edd90b63a162c315a5847d207514c10ebb28cb496a69eee222ec3f94e40d46ef7d69aa43f2cea8b81c6d76121ffb7f07cd0fe1e35c1f2f806a83d488977dfa opendht-2.4.10.tar.gz " diff --git a/testing/restinio/APKBUILD b/testing/restinio/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..ed355a0ea201900ea9f0529c69026904f5d9c748 --- /dev/null +++ b/testing/restinio/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Anjandev Momi <anjan@momi.ca> +# Maintainer: Anjandev Momi <anjan@momi.ca> +pkgname=restinio +pkgver=0.6.17 +pkgrel=0 +pkgdesc="Header-only C++14 library that gives you an embedded HTTP/Websocket server" +url="https://stiffstream.com/en/products/restinio.html" +arch="noarch" +license=" BSD-3-Clause" +makedepends="cmake openssl-dev zlib-dev pcre-dev pcre2-dev boost-dev fmt-dev samurai" +subpackages="$pkgname-dev" +source="https://github.com/Stiffstream/restinio/releases/download/v.$pkgver/restinio-$pkgver.tar.bz2" +options="!check" # cant get checks to work + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build -G Ninja -S dev \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=None \ + -DRESTINIO_FIND_DEPS=ON \ + -DRESTINIO_TEST=OFF \ + -DRESTINIO_SAMPLE=OFF \ + -DRESTINIO_INSTALL_SAMPLES=OFF \ + -DRESTINIO_BENCH=OFF \ + -DRESTINIO_INSTALL_BENCHES=OFF \ + -DRESTINIO_ALLOW_SOBJECTIZER=OFF \ + -DRESTINIO_USE_EXTERNAL_HTTP_PARSER=ON \ + $CMAKE_CROSSOPTS + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +be6f2ccfbeb9840391adfd2e8416b5a0511ac1e47b79038e9296ec5ec9a75c708ece23d9204f5dc0e753f62b950b8410262af2504812f19bbbefcc5cc057b5a1 restinio-0.6.17.tar.bz2 +"