101 lines
2.9 KiB
Bash
101 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-2021 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/KDE/kglobalaccel/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ad81ede10b94035cf101ad9ad87b89db884b701dd16e8f43c56cfa8ec4924b65"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
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 \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-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
|
|
}
|