Date: Tuesday, July 7, 2020 @ 16:16:40 Author: felixonmars Revision: 659198
archrelease: copy trunk to community-staging-x86_64 Added: ratpoints/repos/community-staging-x86_64/ ratpoints/repos/community-staging-x86_64/PKGBUILD (from rev 659196, ratpoints/trunk/PKGBUILD) ratpoints/repos/community-staging-x86_64/ratpoints-fPIC.patch (from rev 659196, ratpoints/trunk/ratpoints-fPIC.patch) ----------------------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ ratpoints-fPIC.patch | 11 +++++++++++ 2 files changed, 44 insertions(+) Copied: ratpoints/repos/community-staging-x86_64/PKGBUILD (from rev 659196, ratpoints/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-07-07 16:16:40 UTC (rev 659198) @@ -0,0 +1,33 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> + +pkgname=ratpoints +pkgver=2.1.3 +pkgrel=4 +pkgdesc="A program that uses an optimized quadratic sieve algorithm in order to find rational points on hyperelliptic curves" +arch=(x86_64) +url="http://www.mathe2.uni-bayreuth.de/stoll/programs/index.html" +license=(GPL2) +depends=(gmp) +source=("http://www.mathe2.uni-bayreuth.de/stoll/programs/$pkgname-$pkgver.tar.gz" 'ratpoints-fPIC.patch') +sha256sums=('c4bd55b4fe6234ed4793edfb6126f63b13ee2eaf122f3dfd8f4737a7096a0a7e' + '4ecfadeda42611a817b81dbf1c281fd9d94f96a03d6749f741d3d30ebf719f98') + +prepare() { + cd $pkgname-$pkgver + + patch -p0 -i ../ratpoints-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-staging-x86_64/ratpoints-fPIC.patch (from rev 659196, ratpoints/trunk/ratpoints-fPIC.patch) =================================================================== --- community-staging-x86_64/ratpoints-fPIC.patch (rev 0) +++ community-staging-x86_64/ratpoints-fPIC.patch 2020-07-07 16:16:40 UTC (rev 659198) @@ -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