# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kcoreaddons pkgver=${_kf5ver} pkgrel=1 pkgdesc='Utilities for core application functionality and accessing the OS' arch=('x86_64') url='https://github.com/KDE/kcoreaddons' license=('LGPL') depends=('qt5-base' 'shared-mime-info') makedepends=('extra-cmake-modules' 'qt5-tools') groups=('kf5') source=("https://download.kde.org/stable/frameworks/${pkgver}/${pkgname}-${pkgver}.tar.xz") md5sums=(`grep ${pkgname}-${_kf5ver}.tar.xz ../kf5.md5 | cut -d" " -f1`) prepare() { cd ${pkgname}-${pkgver} #patch -p1 -i ${srcdir}/2a9b56e9340760822b1dfece73bc045c64033ef1.diff } build() { mkdir -p build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR=${pkgdir} install }