[arch-commits] Commit in cantor/kde-unstable (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 19 18:16:05 UTC 2016
Date: Saturday, November 19, 2016 @ 18:16:05
Author: arojas
Revision: 281594
Enable julia backend
Modified:
cantor/kde-unstable/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-19 17:23:59 UTC (rev 281593)
+++ PKGBUILD 2016-11-19 18:16:05 UTC (rev 281594)
@@ -4,7 +4,7 @@
pkgname=cantor
pkgver=16.11.80
-pkgrel=1
+pkgrel=2
pkgdesc="KDE Frontend to Mathematical Software"
url="http://kde.org/applications/education/cantor/"
arch=('i686' 'x86_64')
@@ -11,7 +11,7 @@
license=('GPL' 'LGPL' 'FDL')
groups=('kde-applications' 'kdeedu')
depends=('analitza' 'libspectre' 'kpty' 'ktexteditor' 'knewstuff' 'libqalculate' 'hicolor-icon-theme')
-makedepends=('extra-cmake-modules' 'python' 'python2' 'kdoctools' 'luajit' 'r')
+makedepends=('extra-cmake-modules' 'python' 'python2' 'kdoctools' 'luajit' 'r' 'julia')
optdepends=('maxima: Maxima backend'
'octave: Octave backend'
'r: R backend'
@@ -24,15 +24,24 @@
replaces=('kdeedu-cantor')
source=("http://download.kde.org/unstable/applications/${pkgver}/src/cantor-${pkgver}.tar.xz"{,.sig})
sha1sums=('5cedf8b109dc0946b4f38eb8fc769060583708d7'
- 'SKIP')
+ 'SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7) # Albert Astals Cid <aacid at kde.org>
prepare() {
mkdir -p build
+
+# Fix build
+ sed '/tests/d' -i $pkgname-$pkgver/src/backends/julia/CMakeLists.txt
}
build() {
cd build
+
+ if [[ $CARCH == 'i686' ]]; then
+ export CFLAGS+=" -march=pentium4"
+ export CXXFLAGS+=" -march=pentium4"
+ fi
+
cmake ../$pkgname-$pkgver \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
More information about the arch-commits
mailing list