Files
haikuports/dev-libs/quazip/quazip1_qt5-1.5.recipe
2025-12-31 14:22:56 +00:00

101 lines
2.8 KiB
Bash

SUMMARY="C++ wrapper for Gilles Vollant's ZIP/UNZIP package"
DESCRIPTION="QuaZIP is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using \
Trolltech's Qt library.
If you need to write files to a ZIP archive or read files from one using QIODevice API, QuaZip is \
exactly the kind of tool you need."
HOMEPAGE="https://github.com/stachenov/quazip"
COPYRIGHT="2005-2020 Sergey A. Tachenov"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/stachenov/quazip/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="405b72b6e76c8987ff41a762523b8f64876ba406d8a831d268ee0b63f1369582"
SOURCE_FILENAME="quazip1-v$portVersion.tar.gz"
SOURCE_DIR="quazip-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.5.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
quazip1_qt5$secondaryArchSuffix = $portVersion
lib:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
REPLACES="
quazip1$secondaryArchSuffix
"
PROVIDES_devel="
quazip1_qt5${secondaryArchSuffix}_devel = $portVersion
devel:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
quazip1_qt5$secondaryArchSuffix == $portVersion base
devel:libQt5Core$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"
defineDebugInfoPackage quazip1_qt5$secondaryArchSuffix \
"$libDir"/libquazip1-qt5.so.$libVersion
BUILD()
{
cmake -B build -S . -DCMAKE_BUILD_TYPE=None \
$cmakeDirArgs \
-DQUAZIP_ENABLE_TESTS=ON
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# prepare develop/lib
prepareInstalledDevelLib libquazip1-qt5
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
# ********* Start testing of TestQuaZipNewInfo *********
# Config: Using QtTest library 5.15.16, Qt 5.15.16 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.3.0), unknown unknown
# PASS : TestQuaZipNewInfo::initTestCase()
# FAIL! : TestQuaZipNewInfo::setFileNTFSTimes() Compared values are not the same
# Actual (time) : 134116639243450000
# Expected (aTicks): 134116639243440000
# Loc: [/sources/quazip-1.5/qztest/testquazipnewinfo.cpp(120)]
# PASS : TestQuaZipNewInfo::cleanupTestCase()
# Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 11ms
# ********* Finished testing of TestQuaZipNewInfo *********
# 0% tests passed, 1 tests failed out of 1
ctest --test-dir build --output-on-failure
}