# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kdelibs4support pkgver=${_kf5ver} pkgrel=1 pkgdesc='Provides code and utilities to ease the transition from kdelibs 4 to KDE Frameworks 5' arch=('x86_64') url='https://invent.kde.org/frameworks/kdelibs4support' license=('LGPL') depends=('kcompletion' 'kconfigwidgets' 'kconfig' 'kcrash' 'kdesignerplugin' 'kglobalaccel' 'kguiaddons' 'ki18n' 'kiconthemes' 'kio' 'knotifications' 'kparts' 'kservice' 'ktextwidgets' 'kunitconversion' 'kwidgetsaddons' 'kxmlgui' 'kdbusaddons' 'kded' 'kemoticons' 'kitemmodels' 'kinit' 'libsm' 'networkmanager') makedepends=('extra-cmake-modules' 'kdoctools' 'qt5-tools' 'perl-uri') groups=('kf5') source=("https://download.kde.org/stable/frameworks/5.104/portingAids/${pkgname}-${pkgver}.tar.xz") md5sums=(`grep ${pkgname}-${_kf5ver}.tar.xz ../kf5.md5 | cut -d" " -f1`) prepare() { cd ${pkgname}-${pkgver} #sed -i -e 's|kded_networkstatus networkstatus.desktop SERVICE_TYPES kdedmodule.desktop|kded_networkstatus networkstatus.desktop|' src/solid-networkstatus/kded/CMakeLists.txt } build() { mkdir -p build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=lib \ -DKDE_INSTALL_SYSCONFDIR=/etc \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR=${pkgdir} install # conflicts with kio #rm -r ${pkgdir}/usr/share/doc/HTML/*/kcontrol5 }