libquotient, bump version (#9760)

This commit is contained in:
Schrijvers Luc
2023-12-07 15:38:36 +01:00
committed by GitHub
parent bf8abc6b06
commit 6ba02edaad
2 changed files with 165 additions and 0 deletions

View File

@@ -0,0 +1,82 @@
SUMMARY="A Qt5 library to write cross-platform clients for Matrix"
DESCRIPTION="The Quotient project aims to produce a Qt5-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="1"
SOURCE_URI="https://github.com/quotient-im/libQuotient/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="5e5539fe9616c9f63985b0aabfab1858f1626e3d71a14709eeedd85af0471c7c"
SOURCE_DIR="libQuotient-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
libquotient_qt5$secondaryArchSuffix = $portVersion
lib:libQuotient$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Keychain$secondaryArchSuffix
lib:libQt5Multimedia$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
"
PROVIDES_devel="
libquotient_qt5${secondaryArchSuffix}_devel = $portVersion
devel:libQuotient$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libquotient_qt5$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Keychain$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
BUILD()
{
cmake -B build \
$cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_QT6=OFF \
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON \
-DQuotient_INSTALL_TESTS=OFF \
-DQuotient_ENABLE_E2EE=OFF \
-DBUILD_SHARED_LIBS=ON
cmake --build build --target all $jobArgs
}
INSTALL()
{
cmake --install build
# get rid of dataDir with Android.mk
rm -rf $dataDir
prepareInstalledDevelLib \
libQuotient
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}

View File

@@ -0,0 +1,83 @@
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="1"
SOURCE_URI="https://github.com/quotient-im/libQuotient/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="5e5539fe9616c9f63985b0aabfab1858f1626e3d71a14709eeedd85af0471c7c"
SOURCE_DIR="libQuotient-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%.*}"
PROVIDES="
libquotient_qt6$secondaryArchSuffix = $portVersion
lib:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
lib:libQt6Keychain$secondaryArchSuffix
lib:libQt6Multimedia$secondaryArchSuffix
lib:libQt6Network$secondaryArchSuffix
"
PROVIDES_devel="
libquotient_qt6${secondaryArchSuffix}_devel = $portVersion
devel:libQuotientQt6$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libquotient_qt6$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Keychain$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
"
BUILD()
{
cmake -B build \
$cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WITH_QT6=ON \
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON \
-DQuotient_INSTALL_TESTS=OFF \
-DQuotient_ENABLE_E2EE=OFF \
-DBUILD_SHARED_LIBS=ON
cmake --build build --target all $jobArgs
}
INSTALL()
{
cmake --install build
# get rid of dataDir with Android.mk
rm -rf $dataDir
prepareInstalledDevelLib \
libQuotientQt6
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}