From 1e4b3e8bc892a347be2be05b6826147cdb381ff1 Mon Sep 17 00:00:00 2001 From: Cowington Post Date: Thu, 15 Feb 2024 16:54:18 -0800 Subject: [PATCH] testing/psi-plus: new aport --- testing/psi-plus/APKBUILD | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 testing/psi-plus/APKBUILD diff --git a/testing/psi-plus/APKBUILD b/testing/psi-plus/APKBUILD new file mode 100644 index 00000000000..9362111b92e --- /dev/null +++ b/testing/psi-plus/APKBUILD @@ -0,0 +1,58 @@ +# Maintainer: Cowington Post +pkgname=psi-plus +pkgver=1.5.1653 +pkgrel=0 +pkgdesc="Powerful XMPP (Jabber) client (Qt, C++) designed for power users" +url="https://psi-plus.com/" +arch="all !ppc64le !s390x" # qt5-qtwebengine +license="GPL-2.0" +makedepends=" + cmake + hunspell-dev + libidn-dev + libotr-dev + libsignal-protocol-c-dev + libusrsctp-dev + qca-dev + qt5-qtbase-dev + qt5-qtmultimedia-dev + qt5-qtsvg-dev + qt5-qtwebengine-dev + qt5-qtx11extras-dev + samurai + tidyhtml-dev + " +subpackages="$pkgname-plugins" +source="https://github.com/psi-plus/psi-plus-snapshots/archive/$pkgver/psi-plus-$pkgver.tar.gz" +builddir="$srcdir/psi-plus-snapshots-$pkgver" +options="!check" # no tests + +build() { + if [ "$CBUILD" != "$CHOST" ]; then + local 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=ON \ + -DCMAKE_BUILD_TYPE=None \ + -DCHAT_TYPE=webengine\ + -DUSE_XSS=0 \ + -DPSI_PLUS=1 \ + -DENABLE_PLUGINS=ON \ + -DBUILD_DEV_PLUGINS=ON \ + $crossopts + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +plugins() { + amove usr/lib/psi-plus/plugins +} + +sha512sums=" +c86f6701717ea2208c8ed95fd1b558d4848880fd479e18d09f97ab05e14c9854972369dfcd8d28ef20b5fb02d12fa812a0a5acd54281a80b2f5c3134e54ab8c5 psi-plus-1.5.1653.tar.gz +"