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
|
2023-06-26 23:34:17 +00:00
|
|
|
_pkgver=1.9.0-57
|
2022-05-28 19:41:14 +00:00
|
|
|
pkgver=${_pkgver//-/.}
|
2023-05-07 22:10:44 +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)
|
2023-06-26 23:34:17 +00:00
|
|
|
makedepends=(python libjpeg texlive-mathscience hevea nauty)
|
2022-05-28 19:41:14 +00:00
|
|
|
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
|
2023-06-26 23:34:17 +00:00
|
|
|
format-security.patch
|
|
|
|
fix-build.patch)
|
|
|
|
sha256sums=('b81f9a24646be4989e68faf12cb8bdae3688f0440bec2e1a62e97af702684c1b'
|
|
|
|
'04288944e408807a15aa502e1215087870d8921229c9f9890d862d3c9de337cd'
|
|
|
|
'184e158a59d6a07b03436d7fdc197f1422c0e6786b3d89c7a7231d10b193c5bb')
|
2022-05-28 19:41:14 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-${pkgver%.*}
|
2022-11-05 00:08:40 +00:00
|
|
|
patch -p1 < ../format-security.patch # Fix -Werror=format-security errors
|
2023-06-26 23:34:17 +00:00
|
|
|
patch -p1 < ../fix-build.patch
|
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
|
|
|
|
}
|