2017-11-19 10:25:26 +01:00
|
|
|
# Template file for 'giac'
|
|
|
|
pkgname=giac
|
2017-12-02 16:13:27 +01:00
|
|
|
version=1.4.9r33
|
2017-11-19 10:25:26 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-${version/r*}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
makedepends="fltk-devel gmp-devel gsl-devel lapack-devel
|
|
|
|
libjpeg-turbo-devel libpng-devel readline-devel"
|
|
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
|
|
short_desc="Free computer algebra system"
|
|
|
|
maintainer="cr6git <quark6@protonmail.com>"
|
|
|
|
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
|
|
|
|
license="GPL-3"
|
|
|
|
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/${pkgname}_${version/r/-}.tar.gz"
|
2017-12-02 16:13:27 +01:00
|
|
|
checksum=bba6978c7a4e7678722163f2830f6dda01665673cba8d99988d9ab44890c07b8
|
|
|
|
nocross="depends on blas, blas depends on libgfortran, libgfortran cannot be cross built"
|
2017-11-19 10:25:26 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|