summaryrefslogtreecommitdiffstats
path: root/main/mpfr/APKBUILD
blob: e2d92d12994cc55ceb0a010b26ced126e9da938f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpfr
pkgver=2.4.2
pkgrel=2
pkgdesc="multiple-precision floating-point library"
url="http://www.mpfr.org/"
license="GPL LGPL"
depends=
makedepends="gmp5-dev texinfo"
source="http://www.mpfr.org/mpfr-current/mpfr-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"

build() { 
	cd "$srcdir"/$pkgname-$pkgver
	./configure --prefix=/usr \
		--enable-shared || return 1;
	make || return 1;
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="${pkgdir}" install || return 1;
}

dev() {
	replaces=mpfr
	default_dev
}
md5sums="89e59fe665e2b3ad44a6789f40b059a0  mpfr-2.4.2.tar.bz2"