1SUMMARY="C++ wrapper for Gilles Vollant's ZIP/UNZIP package" 2DESCRIPTION="QuaZIP is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using \ 3Trolltech's Qt library. 4If you need to write files to a ZIP archive or read files from one using QIODevice API, QuaZip is \ 5exactly the kind of tool you need." 6HOMEPAGE="https://github.com/stachenov/quazip" 7COPYRIGHT="2005-2020 Sergey A. Tachenov" 8LICENSE="GNU LGPL v2.1" 9REVISION="1" 10SOURCE_URI="https://github.com/stachenov/quazip/archive/v$portVersion.tar.gz" 11CHECKSUM_SHA256="79633fd3a18e2d11a7d5c40c4c79c1786ba0c74b59ad752e8429746fe1781dd6" 12SOURCE_FILENAME="quazip1-v$portVersion.tar.gz" 13SOURCE_DIR="quazip-$portVersion" 14 15ARCHITECTURES="all !x86_gcc2" 16SECONDARY_ARCHITECTURES="x86" 17 18libVersion="1.4.0" 19libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 20 21PROVIDES=" 22 quazip1$secondaryArchSuffix = $portVersion 23 lib:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat 24 lib:libquazip1_qt6$secondaryArchSuffix = $libVersionCompat 25 " 26REQUIRES=" 27 haiku$secondaryArchSuffix 28 qt6_5compat$secondaryArchSuffix 29 lib:libQt5Core$secondaryArchSuffix 30 lib:libQt6Core$secondaryArchSuffix 31 lib:libz$secondaryArchSuffix 32 " 33 34PROVIDES_devel=" 35 quazip1${secondaryArchSuffix}_devel = $portVersion 36 devel:libquazip1_qt5$secondaryArchSuffix = $libVersionCompat 37 devel:libquazip1_qt6$secondaryArchSuffix = $libVersionCompat 38 " 39REQUIRES_devel=" 40 quazip1$secondaryArchSuffix == $portVersion base 41 devel:libQt5Core$secondaryArchSuffix 42 devel:libQt6Core$secondaryArchSuffix 43 " 44 45BUILD_REQUIRES=" 46 haiku${secondaryArchSuffix}_devel 47 qt6_5compat${secondaryArchSuffix}_devel 48 devel:libQt5Core$secondaryArchSuffix 49 devel:libz$secondaryArchSuffix 50 " 51BUILD_PREREQUIRES=" 52 cmd:cmake 53 cmd:gcc$secondaryArchSuffix 54 cmd:ld$secondaryArchSuffix 55 cmd:make 56 cmd:pkg_config$secondaryArchSuffix 57 cmd:qmake$secondaryArchSuffix >= 5 58 " 59 60defineDebugInfoPackage quazip1$secondaryArchSuffix \ 61 "$libDir"/libquazip1-qt5.so.$libVersion \ 62 "$libDir"/libquazip1-qt6.so.$libVersion 63 64BUILD() 65{ 66 cmake -B build5 -S . \ 67 $cmakeDirArgs \ 68 -DCMAKE_BUILD_TYPE=None 69 cmake --build build5 70 71 cmake -B build6 -S . \ 72 $cmakeDirArgs \ 73 -DCMAKE_BUILD_TYPE=None \ 74 -DQUAZIP_QT_MAJOR_VERSION=6 75 cmake --build build6 76} 77 78INSTALL() 79{ 80 make -C build5 install 81 make -C build6 install 82 83 # prepare develop/lib 84 prepareInstalledDevelLibs libquazip1-qt5 libquazip1-qt6 85 fixPkgconfig 86 87 # devel package 88 packageEntries devel \ 89 $developDir \ 90 $libDir/cmake 91} 92 93TEST() 94{ 95 make -C build check 96 # There is no cmake compatible test. 97} 98