[arch-commits] Commit in ratpoints (7 files)
Antonio Rojas
arojas at archlinux.org
Sat Dec 20 23:16:55 UTC 2014
Date: Sunday, December 21, 2014 @ 00:16:55
Author: arojas
Revision: 124230
archrelease: copy trunk to community-i686, community-x86_64
Added:
ratpoints/repos/
ratpoints/repos/community-i686/
ratpoints/repos/community-i686/PKGBUILD
(from rev 124229, ratpoints/trunk/PKGBUILD)
ratpoints/repos/community-i686/fPIC.patch
(from rev 124229, ratpoints/trunk/fPIC.patch)
ratpoints/repos/community-x86_64/
ratpoints/repos/community-x86_64/PKGBUILD
(from rev 124229, ratpoints/trunk/PKGBUILD)
ratpoints/repos/community-x86_64/fPIC.patch
(from rev 124229, ratpoints/trunk/fPIC.patch)
-----------------------------+
community-i686/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
community-i686/fPIC.patch | 11 +++++++++++
community-x86_64/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
community-x86_64/fPIC.patch | 11 +++++++++++
4 files changed, 90 insertions(+)
Copied: ratpoints/repos/community-i686/PKGBUILD (from rev 124229, ratpoints/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD (rev 0)
+++ repos/community-i686/PKGBUILD 2014-12-20 23:16:55 UTC (rev 124230)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=ratpoints
+pkgver=2.1.3
+pkgrel=1
+pkgdesc="A program that uses an optimized quadratic sieve algorithm in order to find rational points on hyperelliptic curves"
+arch=('i686' 'x86_64')
+url="http://www.mathe2.uni-bayreuth.de/stoll/programs/index.html"
+license=('GPL2')
+depends=('gmp')
+options=('staticlibs')
+source=("http://www.mathe2.uni-bayreuth.de/stoll/programs/$pkgname-$pkgver.tar.gz" 'fPIC.patch')
+md5sums=('597fee3856ef2f80fffc0a440e926208'
+ '60cc67b9308b2e66e65fd6814d341ed6')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ patch -p0 -i $srcdir/fPIC.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/{bin,include,lib}
+ make install INSTALL_DIR="$pkgdir"/usr
+}
+
Copied: ratpoints/repos/community-i686/fPIC.patch (from rev 124229, ratpoints/trunk/fPIC.patch)
===================================================================
--- repos/community-i686/fPIC.patch (rev 0)
+++ repos/community-i686/fPIC.patch 2014-12-20 23:16:55 UTC (rev 124230)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-11-07 21:12:13.411106352 +0100
++++ Makefile 2014-11-07 21:12:21.854468444 +0100
+@@ -29,7 +29,7 @@
+
+ INSTALL_DIR = /usr/local
+
+-CCFLAGS1 = -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=${PRIME_SIZE} -DUSE_SSE
++CCFLAGS1 = -fPIC -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=${PRIME_SIZE} -DUSE_SSE
+ # for gcc on Apple, may have to add '-fnested-functions' to CCFLAGS1
+ CCFLAGS2 = -lgmp -lgcc -lc -lm
+ CCFLAGS3 = -L. -lratpoints
Copied: ratpoints/repos/community-x86_64/PKGBUILD (from rev 124229, ratpoints/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2014-12-20 23:16:55 UTC (rev 124230)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=ratpoints
+pkgver=2.1.3
+pkgrel=1
+pkgdesc="A program that uses an optimized quadratic sieve algorithm in order to find rational points on hyperelliptic curves"
+arch=('i686' 'x86_64')
+url="http://www.mathe2.uni-bayreuth.de/stoll/programs/index.html"
+license=('GPL2')
+depends=('gmp')
+options=('staticlibs')
+source=("http://www.mathe2.uni-bayreuth.de/stoll/programs/$pkgname-$pkgver.tar.gz" 'fPIC.patch')
+md5sums=('597fee3856ef2f80fffc0a440e926208'
+ '60cc67b9308b2e66e65fd6814d341ed6')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ patch -p0 -i $srcdir/fPIC.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ mkdir -p "$pkgdir"/usr/{bin,include,lib}
+ make install INSTALL_DIR="$pkgdir"/usr
+}
+
Copied: ratpoints/repos/community-x86_64/fPIC.patch (from rev 124229, ratpoints/trunk/fPIC.patch)
===================================================================
--- repos/community-x86_64/fPIC.patch (rev 0)
+++ repos/community-x86_64/fPIC.patch 2014-12-20 23:16:55 UTC (rev 124230)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-11-07 21:12:13.411106352 +0100
++++ Makefile 2014-11-07 21:12:21.854468444 +0100
+@@ -29,7 +29,7 @@
+
+ INSTALL_DIR = /usr/local
+
+-CCFLAGS1 = -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=${PRIME_SIZE} -DUSE_SSE
++CCFLAGS1 = -fPIC -Wall -O2 -fomit-frame-pointer -DRATPOINTS_MAX_BITS_IN_PRIME=${PRIME_SIZE} -DUSE_SSE
+ # for gcc on Apple, may have to add '-fnested-functions' to CCFLAGS1
+ CCFLAGS2 = -lgmp -lgcc -lc -lm
+ CCFLAGS3 = -L. -lratpoints
More information about the arch-commits
mailing list