[arch-commits] Commit in singular/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Feb 7 07:29:17 UTC 2018


    Date: Wednesday, February 7, 2018 @ 07:29:14
  Author: arojas
Revision: 289695

Rename macro that conflicts with PARI and breaks Sagemath build

Modified:
  singular/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-07 02:52:25 UTC (rev 289694)
+++ PKGBUILD	2018-02-07 07:29:14 UTC (rev 289695)
@@ -7,7 +7,7 @@
 _patchver=4
 pkgver=${_majver//-/.}.p${_patchver}
 #pkgver=${_majver//-/.}
-pkgrel=1
+pkgrel=2
 pkgdesc="Computer Algebra System for polynomial computations"
 arch=(x86_64)
 url="http://www.singular.uni-kl.de/"
@@ -20,6 +20,13 @@
 sha256sums=('9aef5ec4be8ef1317727686fb5f4e2e80020c3c47b3c762612a594acd4eff0f8')
 options=(!zipman)
 
+prepare() {
+  cd singular-${_majver//-/.}
+  
+# Rename macro that conflicts with PARI
+  find -type f | xargs sed -e 's|LOG2|SINGULARLOG2|g' -i
+}
+
 build() {
   cd singular-${_majver//-/.}
   ./configure --prefix=/usr --libexecdir=/usr/lib



More information about the arch-commits mailing list