new: lfs/mpfr-4.2.1
This commit is contained in:
parent
3a105ff963
commit
4662861ac6
38
lfs/mpfr-4.2.1.PKGBUILD
Normal file
38
lfs/mpfr-4.2.1.PKGBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user