# Maintainer: Natanael Copa pkgname=mpfr3 pkgver=3.1.2 pkgrel=0 pkgdesc="multiple-precision floating-point library" url="http://www.mpfr.org/" arch="all" license="GPL LGPL" depends= makedepends_build="texinfo" makedepends_host="gmp-dev" makedepends="$makedepends_build $makedepends_host" source="http://www.mpfr.org/mpfr-$pkgver/mpfr-$pkgver.tar.xz" subpackages="$pkgname-doc mpfr-dev" _builddir="$srcdir"/mpfr-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --with-sysroot=${CBUILDROOT} \ --prefix=/usr \ --enable-shared \ || return 1; make || return 1; } package() { cd "$_builddir" make DESTDIR="${pkgdir}" install || return 1; } dev() { replaces=mpfr default_dev } md5sums="e3d203d188b8fe60bb6578dd3152e05c mpfr-3.1.2.tar.xz" sha256sums="399d0f47ef6608cc01d29ed1b99c7faff36d9994c45f36f41ba250147100453b mpfr-3.1.2.tar.xz" sha512sums="8d594206afb2637ed39ad564d42c8c4d02b042b95925f5c6ec891e5cb87f7155195559c7ff477256a088ecaaa3c2b0d35a9d11a74ed526a1080d49b2950e5587 mpfr-3.1.2.tar.xz"