Files
haikuports/net-libs/libquotient/libquotient_qt6-0.9.6.1.recipe
2026-02-17 18:32:12 +01:00

100 lines
2.6 KiB
Bash

SUMMARY="A Qt6 library to write cross-platform clients for Matrix"
DESCRIPTION="The Quotient project aims to produce a Qt6-based SDK to develop \
applications for Matrix.
libQuotient is a library that enables client applications.
It is the backbone of Quaternion, NeoChat and other projects.
Versions 0.5.x and older use the previous name - libQMatrixClient."
HOMEPAGE="https://github.com/quotient-im/libQuotient"
COPYRIGHT="Quotient contributors"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="https://github.com/quotient-im/libQuotient/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="ac0fe5df480fa893d3e16da626bf5028c944e9b41f504f6fe0fe49273247d636"
SOURCE_DIR="libQuotient-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*.*}"
PROVIDES="
libquotient_qt6$secondaryArchSuffix = $portVersion
cmd:quotest
lib:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libolm$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Keychain$secondaryArchSuffix
lib:libQt6Multimedia$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
"
REPLACES="
libquotient0.9_qt6$secondaryArchSuffix
"
PROVIDES_devel="
libquotient_qt6${secondaryArchSuffix}_devel = $portVersion
devel:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libquotient_qt6$secondaryArchSuffix == $portVersion base
devel:libolm$secondaryArchSuffix
devel:libQt6Keychain$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libolm$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Keychain$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage libquotient_qt6$secondaryArchSuffix \
$libDir/libQuotientQt6.so.$libVersion
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
$cmakeDirArgs \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# get rid of dataDir with Android.mk
rm -rf $dataDir
prepareInstalledDevelLib \
libQuotientQt6
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
# 92% tests passed, 1 tests failed out of 12
# Can't use password login at localhost:1234 - check that the homeserver is running
ctest --test-dir build --output-on-failure
}