Date: Friday, July 23, 2021 @ 16:30:06 Author: arojas Revision: 984534
archrelease: copy trunk to community-staging-x86_64 Added: singular/repos/community-staging-x86_64/ singular/repos/community-staging-x86_64/PKGBUILD (from rev 984533, singular/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: singular/repos/community-staging-x86_64/PKGBUILD (from rev 984533, singular/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-07-23 16:30:06 UTC (rev 984534) @@ -0,0 +1,48 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Rémy Oudompheng <oudom...@clipper.ens.fr> + +pkgname=singular +_majver=4-2-1 +_patchver=3 +#pkgver=${_majver//-/.}.p${_patchver} +pkgver=${_majver//-/.} +pkgrel=3 +pkgdesc='Computer Algebra System for polynomial computations' +arch=(x86_64) +url='https://www.singular.uni-kl.de/' +license=(GPL) +depends=(flint cddlib) +makedepends=(doxygen) +#source=(ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/$_majver/singular-${_majver//-/.}p${_patchver}.tar.gz) +source=(ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/$_majver/singular-${_majver//-/.}.tar.gz) +sha256sums=('28a56df84f85b116e0068ffecf92fbe08fc27bd4c5ba902997f1a367db0bfe8d') +options=(!zipman) + +build() { + cd singular-${_majver//-/.} + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --docdir=/usr/share/doc \ + --enable-bigintm-module \ + --enable-bigintm-module \ + --enable-Order-module \ + --enable-python-module \ + --enable-gfanlib-module \ + --enable-polymake-module +# https://bugzilla.gnome.org/show_bug.cgi?id=655517 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make +} + +check() { + cd singular-${_majver//-/.} + make check +} + +package() { + cd singular-${_majver//-/.} + make DESTDIR="$pkgdir" install + + install -Dm644 doc/singular.idx -t "$pkgdir"/usr/share/singular +}