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

Antonio Rojas arojas at archlinux.org
Mon Dec 11 23:16:44 UTC 2017


    Date: Monday, December 11, 2017 @ 23:16:43
  Author: arojas
Revision: 273916

Fix segfaults, generate bin files at runtime

Modified:
  sympow/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-11 23:14:29 UTC (rev 273915)
+++ PKGBUILD	2017-12-11 23:16:43 UTC (rev 273916)
@@ -3,22 +3,24 @@
 
 pkgname=sympow
 pkgver=1.018.1
-pkgrel=4
-pkgdesc="A a package to compute special values of symmetric power elliptic
-curve L-functions"
+pkgrel=5
+pkgdesc="A a package to compute special values of symmetric power elliptic curve L-functions"
 arch=(x86_64)
 url="http://www.sagemath.org"
 license=(GPL)
 depends=(pari)
-source=("http://mirrors.mit.edu/sage/spkg/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh')
-md5sums=('b6cbb7488870d70d92d11176049cb91b'
-         '93f214e7f22df8ae525d9fbfbf82eeb1')
+source=("http://mirrors.mit.edu/sage/spkg/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh'
+        sympow-datafiles.patch sympow-initialize-tacks.patch)
+sha256sums=('6cd4559e177502c44dbce3b1a6aeab3e6f4d24df1f21e19aaf25f3a0e2d1f042'
+            'cc9afc9c4cc1b9b539b2051bda960a661809475e68389f4e9c56bd72268e16ee'
+            'c3028de720d5069f89f520d86c3ab6dec686f476c8b19a7a0bd83a7db4abf0cd'
+            '61c79418d5bb173a3976a3c351a7a1ae1ddba4e2e8e183d7246ba5013efe1e31')
 
 prepare() {
   cd $pkgname-$pkgver
 
-  sed -e "s|../sympow|sympow_bin|g" -i generate.c
-  sed -e "s|./sympow|sympow_bin|g" -i disk.c new_data
+  patch -p1 -i ../sympow-datafiles.patch # Fedora
+  patch -p1 -i ../sympow-initialize-tacks.patch # fix segfaults
 }
 
 build() {
@@ -36,11 +38,5 @@
   cp sympow "$pkgdir"/usr/bin/sympow_bin
   cp new_data "$pkgdir"/usr/bin/new_data
 
-  cd "$pkgdir"/usr/share/sympow/datafiles
-
-  for file in *.txt; do
-    "$srcdir"/$pkgname-$pkgver/sympow -txt2bin "$(grep -c AT $file)" <$file ${file/txt/bin}
-  done
-
   install -Dm755 "$srcdir"/sympow.sh "$pkgdir"/usr/bin/sympow
 }



More information about the arch-commits mailing list