Files
haikuports/kde-frameworks/kglobalaccel/kglobalaccel-5.55.0.recipe
2019-02-19 13:10:03 +03:00

104 lines
2.9 KiB
Bash

SUMMARY="Global desktop keyboard shortcuts"
DESCRIPTION="KGlobalAccel allows you to have global accelerators that are \
independent of the focused window. Unlike regular shortcuts, the \
application\'s window does not need focus for them to be activated."
HOMEPAGE="https://github.com/KDE/kglobalaccel/"
COPYRIGHT="2010-2019 KDE Organisation"
LICENSE="GNU LGPL v2"
REVISION="2"
SOURCE_URI="https://github.com/KDE/kglobalaccel/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="f810b5a4494526b5e030811633fbb7bc3e0b5357d3d22523d6cfc1a5ea13e328"
ARCHITECTURES="!x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86"
GLOBAL_WRITABLE_FILES="
settings/xdg/kglobalaccel.categories keep-old
"
PROVIDES="
kglobalaccel$secondaryArchSuffix = $portVersion
cmd:kglobalaccel5$secondaryArchSuffix = $portVersion
lib:libKF5GlobalAccel$secondaryArchSuffix = $portVersion compat >= 5
lib:libKF5GlobalAccelPrivate$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libKF5ConfigCore$secondaryArchSuffix
lib:libKF5CoreAddons$secondaryArchSuffix
lib:libKF5Crash$secondaryArchSuffix
lib:libKF5DBusAddons$secondaryArchSuffix
lib:libKF5I18n$secondaryArchSuffix
lib:libKF5Service$secondaryArchSuffix
lib:libKF5WindowSystem$secondaryArchSuffix
lib:libQt5Concurrent$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5DBus$secondaryArchSuffix
lib:libQt5Test$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libQt5Xml$secondaryArchSuffix
"
PROVIDES_devel="
kglobalaccel${secondaryArchSuffix}_devel = $portVersion
devel:libKF5GlobalAccel$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kglobalaccel$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion
devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion
devel:libKF5Crash$secondaryArchSuffix == $portVersion
devel:libKF5DBusAddons$secondaryArchSuffix == $portVersion
devel:libKF5I18n$secondaryArchSuffix == $portVersion
devel:libKF5Service$secondaryArchSuffix == $portVersion
devel:libKF5WindowSystem$secondaryArchSuffix == $portVersion
devel:libQt5Concurrent$secondaryArchSuffix >= 5.7
devel:libQt5Core$secondaryArchSuffix >= 5.7
devel:libQt5DBus$secondaryArchSuffix >= 5.7
devel:libQt5Test$secondaryArchSuffix >= 5.7
devel:libQt5Widgets$secondaryArchSuffix >= 5.7
devel:libQt5Xml$secondaryArchSuffix >= 5.7
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:lrelease$secondaryArchSuffix >= 5
cmd:make
"
BUILD()
{
mkdir -p build
cd build
cmake .. $cmakeDirArgs \
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs \
libKF5GlobalAccel
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
cd build
make test
}