PKGBUILDs/community/giac/PKGBUILD

41 lines
1.2 KiB
Bash
Raw Normal View History

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-11-05 00:08:40 +00:00
_pkgver=1.9.0-29
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-11-05 00:08:40 +00:00
format-security.patch)
sha256sums=('f6351572cad5f2331faab9a7ca6678bc869695a6c5f69a42baaed50e56790b0e'
'4a5278dc6196b2e9642eed8550f940b0fb08f837ec8fa4dffabade31fdafc4da')
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
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
}