mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:04:37 +08:00
40 lines
801 B
Bash
40 lines
801 B
Bash
# $Id$
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Brad Conte <brad AT bradconte.com>
|
|
|
|
pkgname=ntl
|
|
pkgver=8.1.2
|
|
pkgrel=1
|
|
pkgdesc="A Library for doing Number Theory"
|
|
arch=(i686 x86_64)
|
|
url="http://www.shoup.net/ntl/"
|
|
license=(GPL)
|
|
depends=(gf2x gmp)
|
|
makedepends=()
|
|
options=(!libtool)
|
|
source=("http://www.shoup.net/$pkgname/$pkgname-$pkgver.tar.gz" 'ntl-sage.patch')
|
|
md5sums=('93f36123ac008db31c1031498a9b1e81'
|
|
'4cb5f97080281109bf358959ab993691')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
patch -p0 -i $srcdir/ntl-sage.patch
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver/src
|
|
./configure DEF_PREFIX=/usr SHARED=on NTL_GF2X_LIB=on NTL_GMP_LIP=on
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver/src
|
|
make -k check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver/src
|
|
make PREFIX="$pkgdir/usr" install
|
|
}
|
|
|