0
0
Fork 0
haikuports/kde-frameworks/kidletime/kidletime-5.86.0.recipe

79 lines
1.8 KiB
Bash
Raw Permalink Normal View History

SUMMARY="Reporting of idle time of user and system"
DESCRIPTION="KIdleTime is a singleton reporting information on idle time. \
It is useful not only for finding out about the current idle time of the PC, \
but also for getting notified upon idle time events, such as custom timeouts, \
or user activity."
HOMEPAGE="https://github.com/KDE/kidletime/"
2021-03-18 19:17:26 +00:00
COPYRIGHT="2010-2021 KDE Organisation"
LICENSE="GNU LGPL v2"
2020-12-15 14:20:40 +00:00
REVISION="1"
SOURCE_URI="https://github.com/KDE/kidletime/archive/v$portVersion.tar.gz"
2021-10-31 07:36:09 +00:00
CHECKSUM_SHA256="87279ea3544b0daac48b60aec770fe2d9d5a626fa139f4fd8e60e1721bd9cf64"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kidletime$secondaryArchSuffix = $portVersion
lib:libKF5IdleTime$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
PROVIDES_devel="
kidletime${secondaryArchSuffix}_devel = $portVersion
devel:libKF5IdleTime$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kidletime$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
2018-09-12 12:11:01 +00:00
extra_cmake_modules$secondaryArchSuffix >= $portVersion
2018-04-17 22:17:09 +00:00
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
devel:libQt5Core$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
2021-10-31 07:36:09 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5IdleTime
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}