Files
haikuports/kde-frameworks/karchive/karchive-5.47.0.recipe
2018-06-20 14:01:06 +03:00

87 lines
1.9 KiB
Bash

SUMMARY="Reading, creating, and manipulating file archives"
DESCRIPTION="KArchive provides classes for easy reading, creation and \
manipulation of /"archive/" formats like ZIP and TAR.
It also provides transparent compression and decompression of data, like the \
GZip format, via a subclass of QIODevice."
HOMEPAGE="https://github.com/KDE/karchive/"
COPYRIGHT="2010-2018 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="1"
SOURCE_URI="https://github.com/KDE/karchive/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="2bf47e3070fce8f6f269727279c28dd951dc31cd28e2715c90add3cd835b4a82"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
karchive$secondaryArchSuffix = $portVersion
lib:libkf5archive$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:liblzma$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
karchive${secondaryArchSuffix}_devel = $portVersion
devel:libkf5archive$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
karchive$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
extra_cmake_modules >= 5.46
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:liblzma$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix >= 5.7
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
GLOBAL_WRITABLE_FILES="
settings/xdg/karchive.categories keep-old
"
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5Archive
fixPkgconfig
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}