[arch-commits] Commit in ntl/repos (3 files)

Antonio Rojas arojas at archlinux.org
Tue Dec 10 16:05:47 UTC 2019


    Date: Tuesday, December 10, 2019 @ 16:05:47
  Author: arojas
Revision: 536525

archrelease: copy trunk to community-staging-x86_64

Added:
  ntl/repos/community-staging-x86_64/
  ntl/repos/community-staging-x86_64/PKGBUILD
    (from rev 536524, ntl/trunk/PKGBUILD)
  ntl/repos/community-staging-x86_64/ntl-gf2x-1.3.patch
    (from rev 536524, ntl/trunk/ntl-gf2x-1.3.patch)

--------------------+
 PKGBUILD           |   41 +++++++++++++++++++++++++++++++++++++++++
 ntl-gf2x-1.3.patch |   11 +++++++++++
 2 files changed, 52 insertions(+)

Copied: ntl/repos/community-staging-x86_64/PKGBUILD (from rev 536524, ntl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-10 16:05:47 UTC (rev 536525)
@@ -0,0 +1,41 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Brad Conte <brad AT bradconte.com>
+
+pkgname=ntl
+pkgver=11.4.1
+pkgrel=2
+pkgdesc="A Library for doing Number Theory"
+arch=(x86_64)
+url="https://www.shoup.net/ntl/"
+license=(LGPL)
+depends=(gf2x gmp)
+makedepends=()
+source=("https://www.shoup.net/$pkgname/$pkgname-$pkgver.tar.gz"
+         ntl-gf2x-1.3.patch)
+sha256sums=('a30687c4fbb8f114200426d2b1ece840bd024f64e2c5c6920b2d11ebcd82620e'
+            '45d08b12ba4d0906d6bcdafb466a0c55c1ea13bb4af87b76ec9d400458ab4a3c')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../ntl-gf2x-1.3.patch # Fix build with gf2x 1.3
+
+  cd src
+  rm -r libtool-origin
+}
+
+build() {
+  cd $pkgname-$pkgver/src
+  ./configure DEF_PREFIX=/usr SHARED=on NTL_GF2X_LIB=on NATIVE=off TUNE=x86 \
+    LIBTOOL=libtool CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver/src
+  make -k check
+}
+
+package() {
+  cd $pkgname-$pkgver/src
+  make PREFIX="$pkgdir/usr" install
+}

Copied: ntl/repos/community-staging-x86_64/ntl-gf2x-1.3.patch (from rev 536524, ntl/trunk/ntl-gf2x-1.3.patch)
===================================================================
--- community-staging-x86_64/ntl-gf2x-1.3.patch	                        (rev 0)
+++ community-staging-x86_64/ntl-gf2x-1.3.patch	2019-12-10 16:05:47 UTC (rev 536525)
@@ -0,0 +1,11 @@
+--- ntl-11.4.1/src/gf2x_version_1_2_or_later_required.cpp.orig	2019-12-10 15:33:19.317814419 +0000
++++ ntl-11.4.1/src/gf2x_version_1_2_or_later_required.cpp	2019-12-10 15:33:46.244836785 +0000
+@@ -7,6 +7,8 @@
+ #if (defined(NTL_GF2X_LIB) && defined(NTL_THREADS))
+ // we require v1.2 or later
+ 
++#include <gf2x.h>
++
+ #ifndef GF2X_VERSION_MAJOR
+ // versions after v1.2 should define GF2X_VERSION_MAJOR
+ 


More information about the arch-commits mailing list