# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=cervisia pkgver=${_kdever} pkgrel=1 pkgdesc='User friendly version control system front-end, aiming to support CVS and other version control system programs' url='https://apps.kde.org/cervisia/' arch=('x86_64') license=('GPL' 'LGPL' 'FDL') depends=('ki18n' 'kparts' 'kinit' 'kiconthemes' 'knotifications' 'kwidgetsaddons' 'kitemviews' 'kdesu' 'ktextwidgets') makedepends=('extra-cmake-modules' 'kdoctools') groups=('kde' 'kde-sdk' 'kde-uninstall' 'programming') source=("$_mirror/${pkgname}-${_kdever}.tar.xz") md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1`) prepare() { cd ${pkgname}-${pkgver} #sed -i -e 's|#include |#include |' ${srcdir}/${pkgname}/cvsservice/cvsaskpass.cpp } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_PLUGINDIR=/usr/lib/qt5/plugins \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }