[arch-commits] Commit in singular/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Mon Apr 6 19:58:43 UTC 2020
Date: Monday, April 6, 2020 @ 19:58:42
Author: arojas
Revision: 612096
archrelease: copy trunk to community-staging-x86_64
Added:
singular/repos/community-staging-x86_64/
singular/repos/community-staging-x86_64/PKGBUILD
(from rev 612095, singular/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: singular/repos/community-staging-x86_64/PKGBUILD (from rev 612095, singular/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-06 19:58:42 UTC (rev 612096)
@@ -0,0 +1,43 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Rémy Oudompheng <oudomphe at clipper.ens.fr>
+
+pkgname=singular
+_majver=4-1-3
+_patchver=5
+#pkgver=${_majver//-/.}.p${_patchver}
+pkgver=${_majver//-/.}
+pkgrel=1
+pkgdesc="Computer Algebra System for polynomial computations"
+arch=(x86_64)
+url="https://www.singular.uni-kl.de/"
+license=(GPL)
+depends=(flint cddlib)
+makedepends=(doxygen polymake)
+checkdepends=(python2)
+optdepends=('polymake: Polymake module')
+#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=('8191668116e11537116fb2c85d52d539ac5b4ca758187a9edb337288b28f7f28')
+options=(!zipman)
+
+build() {
+ cd singular-${_majver//-/.}
+ ./configure --prefix=/usr --libexecdir=/usr/lib --docdir=/usr/share/doc
+# 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
+ # Fix ownership
+ chown -R root:root "$pkgdir"/usr/share/singular/html "$pkgdir"/usr/share/info "$pkgdir"/usr/share/singular/singular.idx
+}
More information about the arch-commits
mailing list