# Include global configuration source ../kdeapps.conf pkgname='kde-runtime' pkgver=${_kdever} pkgrel=1 pkgdesc="Plugins and applications necessary for the running of KDE applications" arch=('x86_64') url='https://projects.kde.org/projects/kde/kde-runtime' license=('GPL' 'LGPL') options=('debug') makedepends=('pkg-config' 'cmake' 'automoc4' 'openslp' 'doxygen' 'networkmanager' 'boost') depends=('kdelibs' 'smbclient' 'libssh' 'libcanberra' 'oxygen-icons' 'xorg-xauth' 'libwebp' 'exiv2' 'gpgme') optdepends=('drkonqi: crash report tool' 'khelpcenter: to display applications documentation') groups=('kde' 'kde-minimal' 'kde-uninstall') install=kde-runtime.install replaces=('kdebase-runtime') provides=('kdebase-runtime') conflicts=('kdebase-runtime') source=("$_mirror/${pkgname}-$_kdever.tar.xz"{,.sig} kdebase-runtime-no-html-thumbnails.patch kdebase-runtime-no-kdewebkit.patch) sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../kdeapps.sums | cut -d" " -f1` 'SKIP' '5ce434f25759215ed2b6f71ec82a9118ee76e7428ef1af8a5495133a76c9c2df' '93d5ddf78c784b3d79486813bdfb43debba271b389bfc46ca79aabdb0bca14db') validpgpkeys=(${Avalidpgpkeys[@]}) prepare() { mkdir -p build # Don't link to kactivities sed -e '/plasmaextracomponents/d' -i kde-runtime-$pkgver/plasma/declarativeimports/CMakeLists.txt # Drop HTML thumbnailer, uses insecure QtWebKit cd kde-runtime-$pkgver patch -p1 -i ../kdebase-runtime-no-html-thumbnails.patch patch -p1 -i ../kdebase-runtime-no-kdewebkit.patch } build() { cd build cmake ../kde-runtime-$pkgver \ -DCMAKE_BUILD_TYPE=${_build_type} \ -DKDE4_BUILD_TESTS=OFF \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=${_installprefix} \ -DWITH_QNtrack=OFF \ -DSAMBA_INCLUDE_DIR=/usr/include/samba-4.0 \ -DWITH_NepomukCore=OFF \ -DBUILD_khelpcenter=OFF \ -DBUILD_kglobalaccel=OFF \ -DBUILD_kuiserver=OFF \ -DBUILD_drkonqi=OFF \ -DBUILD_doc=OFF make } package() { cd build make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/share/icons/hicolor/index.theme # included in oxygen-icons rm "$pkgdir"/usr/share/icons/default.kde4 ln -s /usr/lib/kde4/libexec/kdesu "$pkgdir"/usr/bin/kdesu4 # FS#36668 chown :nobody "$pkgdir"/usr/lib/kde4/libexec/kdesud chmod g+s "$pkgdir"/usr/lib/kde4/libexec/kdesud }