PKGBUILDs/community/giac/PKGBUILD
2022-06-28 16:41:22 -04:00

46 lines
1.3 KiB
Bash

# 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
_pkgver=1.9.0-11
pkgver=${_pkgver//-/.}
pkgrel=1
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
giac-test-pari-2.11.patch)
sha256sums=('94d8b3255e1d53fc538e8b8deabe50ddad4d7819553908a8b54d9d0e04eca27f'
'c5f091986f0a0807fc1ae5a3b7454132816e9bc3ed64411f0a7bdf90a8c8e624')
prepare() {
cd $pkgname-${pkgver%.*}
patch -p1 < ../giac-test-pari-2.11.patch # Fix tests with pari 2.11
rm -f src/mkjs # force rebuild for ARM
}
build() {
cd $pkgname-${pkgver%.*}
CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS" # Fix crashes
./configure --prefix=/usr
make
}
check() {
cd $pkgname-${pkgver%.*}
make check
}
package() {
cd $pkgbase-${pkgver%.*}
make DESTDIR="$pkgdir" install
}