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
|
2024-07-20 10:26:21 +00:00
|
|
|
_pkgver=1.9.0-995
|
2022-05-28 19:41:14 +00:00
|
|
|
pkgver=${_pkgver//-/.}
|
2024-08-25 17:08:18 +00:00
|
|
|
pkgrel=2
|
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'
|
2024-01-23 21:47:50 +00:00
|
|
|
license=(GPL-3.0-only)
|
2023-09-18 22:23:30 +00:00
|
|
|
depends=(blas
|
|
|
|
cblas
|
|
|
|
curl
|
|
|
|
fltk
|
|
|
|
gcc-libs
|
|
|
|
glibc
|
|
|
|
glpk
|
|
|
|
gmp
|
|
|
|
gmp-ecm
|
|
|
|
gsl
|
|
|
|
lapack
|
|
|
|
libao
|
|
|
|
libglvnd
|
|
|
|
libpng
|
|
|
|
libsamplerate
|
|
|
|
libusb
|
|
|
|
mpfi
|
|
|
|
mpfr
|
2024-08-25 17:08:18 +00:00
|
|
|
nauty
|
2023-09-18 22:23:30 +00:00
|
|
|
ntl
|
|
|
|
pari
|
|
|
|
readline
|
|
|
|
zlib)
|
|
|
|
makedepends=(hevea
|
|
|
|
libjpeg-turbo
|
|
|
|
python
|
2024-02-16 02:07:58 +00:00
|
|
|
texlive-latexrecommended
|
2023-09-18 22:23:30 +00:00
|
|
|
texlive-mathscience)
|
2022-05-28 19:41:14 +00:00
|
|
|
optdepends=('perl: for pgiac')
|
|
|
|
source=(http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_$_pkgver.tar.gz
|
2023-09-24 21:07:54 +00:00
|
|
|
format-security.patch)
|
2024-07-20 10:26:21 +00:00
|
|
|
sha256sums=('b84b44287d260483ceea6703e12c5efcd67977b0f8f942e4fce20c31f837bcb3'
|
2023-09-24 21:07:54 +00:00
|
|
|
'04288944e408807a15aa502e1215087870d8921229c9f9890d862d3c9de337cd')
|
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-09-24 21:07:54 +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%.*}
|
2023-10-23 20:23:21 +00:00
|
|
|
|
|
|
|
# this uses malloc_usable_size, which is incompatible with fortification level 3
|
|
|
|
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
|
|
|
|
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
|
|
|
|
|
2022-05-28 19:41:14 +00:00
|
|
|
CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS" # Fix crashes
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgbase-${pkgver%.*}
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|