diff --git a/kde-frameworks/kholidays/kholidays-5.44.0.recipe b/kde-frameworks/kholidays/kholidays-5.44.0.recipe new file mode 100644 index 000000000..45b816c34 --- /dev/null +++ b/kde-frameworks/kholidays/kholidays-5.44.0.recipe @@ -0,0 +1,80 @@ +SUMMARY="Dates for holidays and other special events" +DESCRIPTION="This library provides a C++ API that determines holiday and \ +other special events for a geographical region." +HOMEPAGE="https://github.com/KDE/kholidays/" +COPYRIGHT="2010-2018 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/kholidays/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="32b445276886a6bef422104e1bde37074d6f0a2f002ac9a082b945b9e3f481ab" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kholidays$secondaryArchSuffix = $portVersion + lib:libkf5holidays$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:liblzma$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +PROVIDES_devel=" + kholidays${secondaryArchSuffix}_devel = $portVersion + devel:libkf5holidays$secondaryArchSuffix = $portVersion compat >= 5 + " +REQUIRES_devel=" + kholidays$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + extra_cmake_modules >= 5.44 + 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 +} + + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs \ + libKF5Holidays + + fixPkgconfig + + packageEntries devel \ + $libDir/cmake \ + $dataDir/Qt5/mkspecs \ + $developDir +} + +TEST() +{ + cd build + make test +}