[arch-commits] Commit in sympow/repos (6 files)
Antonio Rojas
arojas at archlinux.org
Sat Apr 25 22:02:17 UTC 2015
Date: Sunday, April 26, 2015 @ 00:02:17
Author: arojas
Revision: 132250
archrelease: copy trunk to community-i686, community-x86_64
Added:
sympow/repos/community-i686/PKGBUILD
(from rev 132249, sympow/trunk/PKGBUILD)
sympow/repos/community-i686/sympow.sh
(from rev 132249, sympow/trunk/sympow.sh)
sympow/repos/community-x86_64/PKGBUILD
(from rev 132249, sympow/trunk/PKGBUILD)
sympow/repos/community-x86_64/sympow.sh
(from rev 132249, sympow/trunk/sympow.sh)
Deleted:
sympow/repos/community-i686/PKGBUILD
sympow/repos/community-x86_64/PKGBUILD
----------------------------+
/PKGBUILD | 94 +++++++++++++++++++++++++++++++++++++++++++
community-i686/PKGBUILD | 46 ---------------------
community-i686/sympow.sh | 10 ++++
community-x86_64/PKGBUILD | 46 ---------------------
community-x86_64/sympow.sh | 10 ++++
5 files changed, 114 insertions(+), 92 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2015-04-25 21:58:10 UTC (rev 132249)
+++ community-i686/PKGBUILD 2015-04-25 22:02:17 UTC (rev 132250)
@@ -1,46 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=sympow
-pkgver=1.018.1
-pkgrel=2
-pkgdesc="A a package to compute special values of symmetric power elliptic
-curve L-functions"
-arch=('i686' 'x86_64')
-url="http://www.sagemath.org"
-license=('GPL')
-depends=('glibc')
-makedepends=('pari')
-source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2")
-md5sums=('b6cbb7488870d70d92d11176049cb91b')
-
-prepare() {
- cd $pkgname-$pkgver
-
-# fix segfault
- sed -e 's|"datafiles/param_data"|"/usr/lib/sympow/datafiles/param_data"|' -i disk.c -i generate.c
- sed -e 's|"datafiles/P"; int dl=9;|"/usr/lib/sympow/datafiles/P"; int dl=25;|' \
- -e 's|"datafiles/H"; int dl=9;|"/usr/lib/sympow/datafiles/H"; int dl=25;|' -i disk.c
-}
-
-build() {
- cd $pkgname-$pkgver
-
- ./Configure
- make
-}
-
-package() {
- cd $pkgname-$pkgver
-
- mkdir -p "$pkgdir"/usr/lib/sympow
- mv sympow *.gp new_data datafiles "$pkgdir"/usr/lib/sympow
-
- cd "$pkgdir"/usr/lib/sympow/datafiles
-
- for file in *.txt; do
- ../sympow -txt2bin "$(grep -c AT $file)" <$file ${file/txt/bin}
- done
-
- mkdir -p "$pkgdir"/usr/bin
- ln -s /usr/lib/sympow/sympow "$pkgdir"/usr/bin/sympow
-}
Copied: sympow/repos/community-i686/PKGBUILD (from rev 132249, sympow/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2015-04-25 22:02:17 UTC (rev 132250)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sympow
+pkgver=1.018.1
+pkgrel=3
+pkgdesc="A a package to compute special values of symmetric power elliptic
+curve L-functions"
+arch=(i686 x86_64)
+url="http://www.sagemath.org"
+license=(GPL)
+depends=(glibc)
+makedepends=(pari)
+source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh')
+md5sums=('b6cbb7488870d70d92d11176049cb91b'
+ '93f214e7f22df8ae525d9fbfbf82eeb1')
+
+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
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./Configure
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/{bin,share/sympow}
+ cp -r *.gp datafiles "$pkgdir"/usr/share/sympow
+ 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
+}
Copied: sympow/repos/community-i686/sympow.sh (from rev 132249, sympow/trunk/sympow.sh)
===================================================================
--- community-i686/sympow.sh (rev 0)
+++ community-i686/sympow.sh 2015-04-25 22:02:17 UTC (rev 132250)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+SYMPOW_LOCAL="$HOME"/.local/share/sympow
+
+if [ ! -d "${SYMPOW_LOCAL}" ]; then
+ mkdir -p "${SYMPOW_LOCAL}"
+ cp -r /usr/share/sympow/* "${SYMPOW_LOCAL}"
+fi
+cd "$SYMPOW_LOCAL"
+exec sympow_bin "$@"
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2015-04-25 21:58:10 UTC (rev 132249)
+++ community-x86_64/PKGBUILD 2015-04-25 22:02:17 UTC (rev 132250)
@@ -1,46 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=sympow
-pkgver=1.018.1
-pkgrel=2
-pkgdesc="A a package to compute special values of symmetric power elliptic
-curve L-functions"
-arch=('i686' 'x86_64')
-url="http://www.sagemath.org"
-license=('GPL')
-depends=('glibc')
-makedepends=('pari')
-source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2")
-md5sums=('b6cbb7488870d70d92d11176049cb91b')
-
-prepare() {
- cd $pkgname-$pkgver
-
-# fix segfault
- sed -e 's|"datafiles/param_data"|"/usr/lib/sympow/datafiles/param_data"|' -i disk.c -i generate.c
- sed -e 's|"datafiles/P"; int dl=9;|"/usr/lib/sympow/datafiles/P"; int dl=25;|' \
- -e 's|"datafiles/H"; int dl=9;|"/usr/lib/sympow/datafiles/H"; int dl=25;|' -i disk.c
-}
-
-build() {
- cd $pkgname-$pkgver
-
- ./Configure
- make
-}
-
-package() {
- cd $pkgname-$pkgver
-
- mkdir -p "$pkgdir"/usr/lib/sympow
- mv sympow *.gp new_data datafiles "$pkgdir"/usr/lib/sympow
-
- cd "$pkgdir"/usr/lib/sympow/datafiles
-
- for file in *.txt; do
- ../sympow -txt2bin "$(grep -c AT $file)" <$file ${file/txt/bin}
- done
-
- mkdir -p "$pkgdir"/usr/bin
- ln -s /usr/lib/sympow/sympow "$pkgdir"/usr/bin/sympow
-}
Copied: sympow/repos/community-x86_64/PKGBUILD (from rev 132249, sympow/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2015-04-25 22:02:17 UTC (rev 132250)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=sympow
+pkgver=1.018.1
+pkgrel=3
+pkgdesc="A a package to compute special values of symmetric power elliptic
+curve L-functions"
+arch=(i686 x86_64)
+url="http://www.sagemath.org"
+license=(GPL)
+depends=(glibc)
+makedepends=(pari)
+source=("http://www.sagemath.org/packages/upstream/$pkgname/$pkgname-$pkgver.tar.bz2" 'sympow.sh')
+md5sums=('b6cbb7488870d70d92d11176049cb91b'
+ '93f214e7f22df8ae525d9fbfbf82eeb1')
+
+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
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./Configure
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/{bin,share/sympow}
+ cp -r *.gp datafiles "$pkgdir"/usr/share/sympow
+ 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
+}
Copied: sympow/repos/community-x86_64/sympow.sh (from rev 132249, sympow/trunk/sympow.sh)
===================================================================
--- community-x86_64/sympow.sh (rev 0)
+++ community-x86_64/sympow.sh 2015-04-25 22:02:17 UTC (rev 132250)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+SYMPOW_LOCAL="$HOME"/.local/share/sympow
+
+if [ ! -d "${SYMPOW_LOCAL}" ]; then
+ mkdir -p "${SYMPOW_LOCAL}"
+ cp -r /usr/share/sympow/* "${SYMPOW_LOCAL}"
+fi
+cd "$SYMPOW_LOCAL"
+exec sympow_bin "$@"
More information about the arch-commits
mailing list