~comcloudway/ccw-aports

57b8725ffefcfe5e22aacc7f1d7ad287cae3ce15 — Jakob Meier 2 years ago e3aaec4 + 08166cc
Merge branch 'aur-sagemath-git' into subrepos
1 files changed, 81 insertions(+), 0 deletions(-)

A sagemath/APKBUILD
A sagemath/APKBUILD => sagemath/APKBUILD +81 -0
@@ 0,0 1,81 @@
# Maintainer: Jakob Meier <comcloudway@ccw.icu>

pkgname=sagemath
pkgver=9.7
pkgrel=0
pkgdesc='Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab'
arch="x86_64"
url='http://www.sagemath.org'
license="GPL"
depends="python3 imagemagick texlive-full"
subpackages="$pkgname-dev $pkgname-doc"
# not all of these are required,
# but using the alpine prebuild binaries safes on build-time
# BUG: it seems as if the process keeps hanging
makedepends="
autoconf
automake
bc
binutils
curl-dev
cddlib cddlib-dev
ecl ecl-dev
flint flint-dev
gc-dev gc
gcc
gengetopt gengetopt-dev
gf2x gf2x-dev
gfortran
givaro givaro-dev
glpk glpk-dev
gsl gsl-dev
imagemagick
iml iml-dev
libatomic_ops libatomic_ops-dev
libtool
m4
m4ri m4ri-dev
m4rie m4rie-dev
make
mpc
mpfr mpfr-dev
openblas openblas-dev
pari pari-dev
pcre pcre-dev
perl
primecount primecount-dev
primesieve primesieve-dev
python3
qhull qhull-dev
readline readline-dev
R R-dev R-mathlib
suitesparse suitesparse-dev
tar
which
zeromq zeromq-dev
"
source="$pkgname-$pkgver.tar.gz::https://github.com/sagemath/sage/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/sage-$pkgver"

prepare(){
  default_prepare

  make configure

  ./configure --enable-download-from-upstream-url
}

check() {
  make check
}

build() {
  make -j8
}

package() {
  install -Dm755 sage $pkgdir/usr/bin/
}
sha512sums="
04cac522e568d29a7082cdef6a5f840ce88238f4bb773716db3a31c43621911fb7d7dc4c6673507a7b0a9725fcada3acf289af609692801dda2fa059a85adf97  sagemath-9.7.tar.gz
"