mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
kidletime: add recipe for version 5.39.0
This commit is contained in:
77
kde-frameworks/kidletime/kidletime-5.39.0.recipe
Normal file
77
kde-frameworks/kidletime/kidletime-5.39.0.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
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/"
|
||||
COPYRIGHT="2010-2017 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/KDE/kidletime/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="bdd59bb0c4275f9e3542d1693812676cba749e41bf5eccfc68c91f1421401c73"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
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="
|
||||
extra_cmake_modules >= 5.39
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libKF5CoreAddons$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix >= 5.7
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. $cmakeDirArgs \
|
||||
-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
|
||||
}
|
||||
Reference in New Issue
Block a user