mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
37 lines
876 B
Bash
37 lines
876 B
Bash
|
|
pkgname=mpfr
|
|
_pkgver=3.1.3
|
|
_patchlevel=p3
|
|
pkgver=${_pkgver}.${_patchlevel}
|
|
#pkgver=${_pkgver}
|
|
pkgrel=1
|
|
pkgdesc="Multiple-precision floating-point library"
|
|
arch=('x86_64')
|
|
url="http://www.mpfr.org/"
|
|
license=('LGPL')
|
|
depends=('gmp>=5.0')
|
|
install=mpfr.install
|
|
source=(http://www.mpfr.org/mpfr-current/mpfr-${_pkgver}.tar.xz{,.asc}
|
|
mpfr-${_pkgver}-${_patchlevel}.patch)
|
|
md5sums=('6969398cd2fbc56a6af570b5273c56a9'
|
|
'SKIP'
|
|
'e502185ebb22b41c528f183bb22a7569')
|
|
validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
patch -p1 -i $srcdir/mpfr-${_pkgver}-${_patchlevel}.patch
|
|
./configure --prefix=/usr --enable-thread-safe --enable-shared
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${_pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|