SUMMARY="Plugin framework for desktop services" DESCRIPTION="KService provides a plugin framework for handling desktop \ services. Services can be applications or libraries. They can be bound to \ MIME types or handled by application specific code." HOMEPAGE="https://github.com/KDE/kservice/" COPYRIGHT="2010-2018 KDE Organisation" LICENSE="GNU LGPL v2" REVISION="1" SOURCE_URI="https://github.com/KDE/kservice/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="d4f26e0b7536b4da12a76637439a1c71718412d6c3e46b7b58b1c108a7499af0" ARCHITECTURES="!x86_gcc2 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" kservice$secondaryArchSuffix = $portVersion cmd:kbuildsycoca5$secondaryArchSuffix = $portVersion lib:libKF5Service$secondaryArchSuffix = $portVersion compat >= 5 " REQUIRES=" haiku$secondaryArchSuffix lib:libKF5ConfigCore$secondaryArchSuffix lib:libKF5CoreAddons$secondaryArchSuffix lib:libKF5Crash$secondaryArchSuffix lib:libKF5DBusAddons$secondaryArchSuffix lib:libKF5I18n$secondaryArchSuffix lib:libQt5Core$secondaryArchSuffix lib:libQt5DBus$secondaryArchSuffix lib:libQt5Xml$secondaryArchSuffix " PROVIDES_devel=" kservice${secondaryArchSuffix}_devel = $portVersion devel:libKF5Service$secondaryArchSuffix = $portVersion compat >= 5 " REQUIRES_devel=" kservice$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" extra_cmake_modules >= 5.46 haiku${secondaryArchSuffix}_devel devel:libKF5ConfigCore$secondaryArchSuffix == $portVersion devel:libKF5CoreAddons$secondaryArchSuffix == $portVersion devel:libKF5Crash$secondaryArchSuffix == $portVersion devel:libKF5DBusAddons$secondaryArchSuffix == $portVersion devel:libKF5I18n$secondaryArchSuffix == $portVersion devel:libQt5Core$secondaryArchSuffix >= 5.7 devel:libQt5DBus$secondaryArchSuffix >= 5.7 devel:libQt5Xml$secondaryArchSuffix >= 5.7 " BUILD_PREREQUIRES=" cmd:bison cmd:cmake cmd:flex cmd:g++$secondaryArchSuffix cmd:make cmd:python2 " GLOBAL_WRITABLE_FILES=" settings/xdg/menus/applications.menu keep-old settings/xdg/kservice.categories keep-old " BUILD() { mkdir -p build cd build # TODO: /bin/kbuildsycoca5 - Couldn't create "/boot/system/cache" # TODO: ECM_MKSPECS_INSTALL_DIR is not picked up unless defined cmake .. $cmakeDirArgs \ -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ -DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs make $jobArgs } INSTALL() { cd build make install # TODO: doesn't work for some reason # rm -rf $settingsDir prepareInstalledDevelLibs \ libKF5Service packageEntries devel \ $libDir/cmake \ $dataDir/Qt5/mkspecs \ $developDir } TEST() { cd build make test }