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

Antonio Rojas arojas at archlinux.org
Sat Sep 7 22:01:48 UTC 2019


    Date: Saturday, September 7, 2019 @ 22:01:48
  Author: arojas
Revision: 508529

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: ntl/repos/community-staging-x86_64/PKGBUILD (from rev 508528, ntl/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-09-07 22:01:48 UTC (rev 508529)
@@ -0,0 +1,36 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Brad Conte <brad AT bradconte.com>
+
+pkgname=ntl
+pkgver=11.3.4
+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=('2d93baa2a1c6c7477113dc71413dedf74bcc8d9477427c3d1097be68fa30be39')
+
+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}"
+  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