aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpfr3/APKBUILD
blob: 6287f20ab1a9001d27a004ecdcc129a456ff6394 (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
30
31
32
33
34
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpfr3
pkgver=3.0.0
pkgrel=3
pkgdesc="multiple-precision floating-point library"
url="http://www.mpfr.org/"
arch="all"
license="GPL LGPL"
depends=
makedepends="gmp-dev texinfo"
source="http://www.mpfr.org/mpfr-current/mpfr-$pkgver.tar.bz2"
subpackages="$pkgname-doc mpfr-dev"

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

package() {
	cd "$_builddir"
	make DESTDIR="${pkgdir}" install || return 1;
	rm "$pkgdir"/usr/lib/*.la || return 1
}

dev() {
	replaces=mpfr
	default_dev
}
md5sums="f45bac3584922c8004a10060ab1a8f9f  mpfr-3.0.0.tar.bz2"