2022-05-28 19:41:14 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinxuarm.org>
|
|
|
|
# - delete shipped x86 binary src/mkjs to force rebuild for ARM
|
|
|
|
|
|
|
|
pkgname=giac
|
2022-10-23 21:42:47 +00:00
|
|
|
_pkgver=1.9.0-25
|
2022-05-28 19:41:14 +00:00
|
|
|
pkgver=${_pkgver//-/.}
|
2022-10-22 22:02:16 +00:00
|
|
|
pkgrel=1
|
2022-05-28 19:41:14 +00:00
|
|
|
pkgdesc='A free computer algebra system'
|
|
|
|
arch=(x86_64)
|
|
|
|
url='http://www-fourier.ujf-grenoble.fr/~parisse/giac.html'
|
|
|
|
license=(GPL3)
|
|
|
|
depends=(fltk mpfi gsl pari ntl lapack curl glpk libao gmp-ecm libsamplerate)
|
|
|
|
makedepends=(python libjpeg texlive-core texlive-science hevea nauty)
|
|
|
|
optdepends=('perl: for pgiac')
|
|
|
|
replaces=(libgiac xcas)
|
|
|
|
provides=(libgiac xcas)
|
|
|
|
source=(http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_$_pkgver.tar.gz
|
2022-09-29 18:48:02 +00:00
|
|
|
giac-pari-2.15.patch)
|
2022-10-23 21:42:47 +00:00
|
|
|
sha256sums=('a449c1de1136d0fe45c162fcd84821ff3e68f8995512affeac683e0abc1f8b71'
|
2022-09-29 18:48:02 +00:00
|
|
|
'cb1d6e783f2a1f05c2ec7319874089e6a2ab6316f65661087796452b9b8efb21')
|
2022-05-28 19:41:14 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-${pkgver%.*}
|
2022-09-29 18:48:02 +00:00
|
|
|
patch -p1 < ../giac-pari-2.15.patch # Fix build with pari 2.15
|
2022-05-28 19:41:14 +00:00
|
|
|
rm -f src/mkjs # force rebuild for ARM
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-${pkgver%.*}
|
|
|
|
CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS" # Fix crashes
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgbase-${pkgver%.*}
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|