# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=cantor pkgver=${_kdever} pkgrel=1 pkgdesc="KDE Frontend to Mathematical Software" url="https://apps.kde.org/en/cantor" arch=('x86_64') license=('GPL' 'LGPL' 'FDL') depends=('kconfig' 'kcrash' 'kcompletion' 'knewstuff' 'kiconthemes' 'ktexteditor' 'kcoreaddons' 'karchive' 'kparts' 'syntax-highlighting' 'ktextwidgets' 'kio' 'kxmlgui' 'ki18n' 'kpty' 'kalgebra' 'libspectre' 'octave' 'python3' 'libqalculate' 'discount' 'r' 'poppler') makedepends=('extra-cmake-modules' 'kdoctools' 'icu' 'qt5-tools') opdepends=('scilab' 'maxima') groups=('kde' 'kde-edu' 'kde-uninstall' 'education') source=("$_mirror/${pkgname}-${_kdever}.tar.xz" 'pythonhighlighter.diff') md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1` '8da6949371a3181e42d510e9b59a2876') prepare() { cd ${pkgname}-${pkgver} sed -i -e 's|add_subdirectory(sage)|#add_subdirectory(sage)|' src/backends/CMakeLists.txt # needed changes for e-c-m 5.31.0 #patch -p1 -i $srcdir/pythonhighlighter.diff } 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 \ -DBUILD_TESTING=OFF cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }