From d65e3067c70a374d0d5774b95d2431622ea51b07 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Fri, 7 Oct 2022 20:39:40 +0200 Subject: [PATCH] completely rewrote APKBUILD --- sagemath/APKBUILD | 80 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 sagemath/APKBUILD diff --git a/sagemath/APKBUILD b/sagemath/APKBUILD new file mode 100644 index 0000000..7a1ac7c --- /dev/null +++ b/sagemath/APKBUILD @@ -0,0 +1,80 @@ +# Maintainer: Jakob Meier + +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=" +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 +" -- 2.38.5