52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# Template file for 'giac'
|
|
pkgname=giac
|
|
version=1.7.0.53
|
|
revision=1
|
|
wrksrc="giac-${version%.*}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-micropy --disable-quickjs"
|
|
makedepends="fltk-devel gmp-devel gsl-devel lapack-devel
|
|
libjpeg-turbo-devel libpng-devel readline-devel mpfr-devel pari-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Free computer algebra system"
|
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
|
|
changelog="https://www-fourier.ujf-grenoble.fr/~parisse/install_en#new"
|
|
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
|
|
checksum=74e5f98f63147c0197e4ce309601ae745312761be61c1a99c8a6bab4862e4a9f
|
|
|
|
# need more than 4*65536 stack, see try_parse() in gen.cc line 11812
|
|
LDFLAGS="-Wl,-z,stack-size=2097152"
|
|
|
|
post_install() {
|
|
# remove duplicates
|
|
rm -r ${DESTDIR}/usr/share/doc
|
|
}
|
|
|
|
libgiac_package() {
|
|
short_desc+=" - runtime library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
giac-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} $makedepends"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
giac-doc_package() {
|
|
short_desc+=" - Documentation and Examples"
|
|
pkg_install() {
|
|
vmove "usr/share/giac/doc"
|
|
vmove "usr/share/giac/examples"
|
|
find ${PKGDESTDIR} -name "Makefile*" -delete
|
|
}
|
|
}
|