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

Antonio Rojas arojas at archlinux.org
Mon Sep 2 17:49:28 UTC 2019


    Date: Monday, September 2, 2019 @ 17:49:27
  Author: arojas
Revision: 507053

archrelease: copy trunk to community-staging-x86_64

Added:
  ntl/repos/community-staging-x86_64/
  ntl/repos/community-staging-x86_64/PKGBUILD
    (from rev 507052, ntl/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: ntl/repos/community-staging-x86_64/PKGBUILD (from rev 507052, ntl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-02 17:49:27 UTC (rev 507053)
@@ -0,0 +1,36 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Brad Conte <brad AT bradconte.com>
+
+pkgname=ntl
+pkgver=11.3.3
+pkgrel=1
+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")
+sha256sums=('1bd9b64c3e8e8563b8f04e87851799dbfaa9d44d131c8531f66d390ca5b05b13')
+
+prepare() {
+  cd $pkgname-$pkgver/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}" LDLIBS="-lpthread"
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver/src
+  make -k check
+}
+
+package() {
+  cd $pkgname-$pkgver/src
+  make PREFIX="$pkgdir/usr" install
+}


More information about the arch-commits mailing list