aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpfr3/APKBUILD
blob: 5179aef29e6b4cd4d17dbabf5b7f1dcad8a4cb20 (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
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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;
	rm "$pkgdir"/usr/lib/*.la || 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"