39 lines
914 B
Plaintext
39 lines
914 B
Plaintext
pkgname=mpfr
|
|
_pkgver=4.2.1
|
|
_patchver=0
|
|
if (( _patchver == 0 )); then
|
|
pkgver=$_pkgver
|
|
else
|
|
pkgver=$_pkgver.p$_patchver
|
|
fi
|
|
pkgdesc='Multiple-precision floating-point library'
|
|
homepage='https://www.mpfr.org/'
|
|
# NOTE: download potentially existing patches from upstream:
|
|
# `curl patches.diff -o https://www.mpfr.org/mpfr-${_pkgver}/allpatches`
|
|
sources=("${pkgname}-${_pkgver}.tar.xz")
|
|
urls=(https://ftp.gnu.org/gnu/$pkgname/$pkgname-$_pkgver.tar.xz)
|
|
md5sums=("523c50c6318dde6f9dc523bc0244690a")
|
|
|
|
|
|
src_prepare() {
|
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--enable-thread-safe \
|
|
--docdir=/usr/share/doc/mpfr-${_pkgver}
|
|
make
|
|
make html
|
|
}
|
|
|
|
src_check() {
|
|
make check
|
|
}
|
|
|
|
src_install() {
|
|
make DESTDIR="$pkgdir" install
|
|
make DESTDIR="$pkgdir" install-html
|
|
}
|