84 lines
1.8 KiB
Bash
84 lines
1.8 KiB
Bash
SUMMARY="Simple C\+\+ wrapper over 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."
|
|
HOMEPAGE="https://github.com/stachenov/quazip"
|
|
COPYRIGHT="2005-2014 Sergey A. Tachenov"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/stachenov/quazip/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4fda4d4248e08015b5090d0369ef9e68bdc4475aa12494f7c0f6d79e43270d14"
|
|
SOURCE_FILENAME="quazip-$portVersion.tar.gz"
|
|
PATCHES="quazip-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
quazip$secondaryArchSuffix = $portVersion
|
|
lib:libquazip5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
quazip${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libquazip5$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
quazip$secondaryArchSuffix == $portVersion base
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
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 quazip$secondaryArchSuffix \
|
|
"$libDir"/libquazip5.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
cmake . \
|
|
$cmakeDirArgs \
|
|
-DINSTALL_PATH=$dataDir
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
fixPkgconfig
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libquazip5
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
# There is no cmake compatible test.
|
|
}
|