mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
103 lines
2.9 KiB
Bash
103 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-2018 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/KDE/kglobalaccel/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="31a746d5a100217539b6803f1ddaf88d53a94d5e3ebf0f74a708038d2a755cbb"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
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:libQt5Xml$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kglobalaccel${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKF5GlobalAccel$secondaryArchSuffix = $portVersion compat >= 5
|
|
"
|
|
REQUIRES_devel="
|
|
kglobalaccel$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
extra_cmake_modules >= 5.45
|
|
haiku${secondaryArchSuffix}_devel
|
|
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:libQt5Xml$secondaryArchSuffix >= 5.7
|
|
devel:libQt5Widgets$secondaryArchSuffix >= 5.7
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/xdg/kglobalaccel.categories keep-old
|
|
"
|
|
|
|
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
|
|
}
|