[arch-commits] Commit in ratpoints/trunk (PKGBUILD ratpoints-fPIC.patch)

Antonio Rojas arojas at gemini.archlinux.org
Fri Dec 24 14:39:14 UTC 2021


    Date: Friday, December 24, 2021 @ 14:39:14
  Author: arojas
Revision: 1083396

Honor system build flags

Modified:
  ratpoints/trunk/PKGBUILD
Deleted:
  ratpoints/trunk/ratpoints-fPIC.patch

----------------------+
 PKGBUILD             |   17 +++++++----------
 ratpoints-fPIC.patch |   11 -----------
 2 files changed, 7 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-24 14:29:30 UTC (rev 1083395)
+++ PKGBUILD	2021-12-24 14:39:14 UTC (rev 1083396)
@@ -2,20 +2,18 @@
 
 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"
+pkgrel=5
+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"
+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')
+source=(http://www.mathe2.uni-bayreuth.de/stoll/programs/$pkgname-$pkgver.tar.gz)
+sha256sums=('c4bd55b4fe6234ed4793edfb6126f63b13ee2eaf122f3dfd8f4737a7096a0a7e')
 
 prepare() {
-  cd $pkgname-$pkgver
-
-  patch -p0 -i ../ratpoints-fPIC.patch
+# Honor system build flags
+  sed -e "s|CCFLAGS =|CCFLAGS = -fPIC $CXXFLAGS $LDFLAGS|" -i $pkgname-$pkgver/Makefile
 }
 
 build() {
@@ -30,4 +28,3 @@
   mkdir -p "$pkgdir"/usr/{bin,include,lib}
   make install INSTALL_DIR="$pkgdir"/usr
 }
-

Deleted: ratpoints-fPIC.patch
===================================================================
--- ratpoints-fPIC.patch	2021-12-24 14:29:30 UTC (rev 1083395)
+++ ratpoints-fPIC.patch	2021-12-24 14:39:14 UTC (rev 1083396)
@@ -1,11 +0,0 @@
---- 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