summaryrefslogblamecommitdiff
path: root/system/mpfr3/APKBUILD
blob: a74cccb4c1fbef2248b310dbf03fb4785df6c682 (plain) (tree)












































                                                                                                                                                                
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpfr3
pkgver=3.1.5
pkgrel=1
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"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--with-sysroot="$CBUILDROOT" \
		--prefix=/usr \
		--enable-shared
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

dev() {
	replaces=mpfr
	default_dev
}

md5sums="c4ac246cf9795a4491e7766002cd528f  mpfr-3.1.5.tar.xz"
sha256sums="015fde82b3979fbe5f83501986d328331ba8ddf008c1ff3da3c238f49ca062bc  mpfr-3.1.5.tar.xz"
sha512sums="3643469b9099b31e41d6ec9158196cd1c30894030c8864ee5b1b1e91b488bccbf7c263c951b03fe9f4ae6f9d29279e157a7dfed0885467d875f107a3d964f032  mpfr-3.1.5.tar.xz"