48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
# Template file for 'giac'
|
|
pkgname=giac
|
|
version=1.5.0.59
|
|
revision=1
|
|
wrksrc="giac-${version%.*}"
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www-fourier.ujf-grenoble.fr/~parisse/giac.html"
|
|
distfiles="https://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_${version%.*}-${version##*.}.tar.gz"
|
|
checksum=3f97a48e5c170dda28b26e9830a4eed7acade409e1b851dc1dd0a26fbc1e0f5e
|
|
|
|
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"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove "usr/share/giac/doc"
|
|
vmove "usr/share/giac/examples"
|
|
find ${PKGDESTDIR} -name "Makefile*" -delete
|
|
}
|
|
}
|
|
|