# Maintainer: Felix Yan # Maintainer: Antonio Rojas # Contributor: Andrea Scarpino # ALARM: Kevin Mihelich # - drop julia make/optdepends, doesn't build on ARM pkgname=cantor pkgver=19.12.3 pkgrel=2 pkgdesc="KDE Frontend to Mathematical Software" url="https://kde.org/applications/education/cantor/" arch=(x86_64) license=(GPL LGPL FDL) groups=(kde-applications kdeedu) depends=(analitza libspectre kpty ktexteditor knewstuff libqalculate hicolor-icon-theme qt5-xmlpatterns poppler-qt5) makedepends=(extra-cmake-modules python kdoctools luajit r) optdepends=('maxima: Maxima backend' 'octave: Octave backend' 'r: R backend' 'luajit: LUA backend' 'python: Python 3 backend' 'sagemath: SageMath backend' 'julia: Julia backend') source=("https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig}) sha256sums=('8347160f18993f53c857ec0d418dfebbc533878ad9f480047646d121e4e644cb' 'SKIP') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck prepare() { mkdir -p build cd $pkgname-$pkgver # patch -p1 -i ../cantor-no-python2.patch # Fix build without python 2 } build() { cd build cmake ../$pkgname-$pkgver \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR="$pkgdir" install }