mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
# Contributor: Grigory Kirillov <txgk@bk.ru>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=singular
|
|
pkgver=4.4.1_p2
|
|
pkgrel=0
|
|
_pkgbase="${pkgver%%_p*}"
|
|
pkgdesc="Computer algebra system for polynomial computations"
|
|
url="https://www.singular.uni-kl.de/"
|
|
arch="all"
|
|
license="GPL-2.0-only OR GPL-3.0-only"
|
|
depends="python3"
|
|
makedepends="
|
|
cddlib-dev
|
|
gmp-dev
|
|
flint-dev
|
|
perl
|
|
"
|
|
subpackages="
|
|
$pkgname-static
|
|
$pkgname-dev
|
|
$pkgname-emacs::noarch
|
|
$pkgname-doc
|
|
"
|
|
source="https://www.singular.uni-kl.de/ftp/pub/Math/Singular/SOURCES/${_pkgbase//./-}/singular-${pkgver/_p/p}.tar.gz"
|
|
builddir="$srcdir/$pkgname-$_pkgbase"
|
|
|
|
build() {
|
|
export CXXFLAGS="${CXXFLAGS/-Os/-O3}" # gotta go fast
|
|
|
|
./configure \
|
|
--target=$CTARGET \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--libexecdir=/usr/lib \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--enable-bigintm-module \
|
|
--enable-Order-module \
|
|
--enable-python-module \
|
|
--enable-gfanlib-module \
|
|
--enable-polymake-module
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
# Perhaps it is better to get rid of 36mb of HTML and images.
|
|
rm -rf "$pkgdir"/usr/share/doc
|
|
}
|
|
|
|
emacs() {
|
|
pkgdesc="Emacs plugins for $pkgname"
|
|
|
|
amove usr/share/singular/emacs
|
|
}
|
|
|
|
sha512sums="
|
|
a4237aaacb03cb4f5709d6636e4460bd673f44b94bc14eeae7023ab7c827bb6e9cb03bbf8f14bf62781616e749b1f8b2f08666d66b2f4a8f26088a5038b1538b singular-4.4.1p2.tar.gz
|
|
"
|