testing/psi-plus: new aport

This commit is contained in:
Cowington Post 2024-02-15 16:54:18 -08:00 committed by Patrycja Rosa
parent 226be82876
commit 1e4b3e8bc8

58
testing/psi-plus/APKBUILD Normal file
View File

@ -0,0 +1,58 @@
# Maintainer: Cowington Post <cowingotnpost@gmail.com>
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
"