summaryrefslogtreecommitdiff
path: root/system/mpfr3/APKBUILD
blob: 394e1480f5988636a973f85d3da0fced4ca576a8 (plain) (blame)
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
# Maintainer: Adelie Platform Group <adelie-devel@lists.adelielinux.org>
pkgname=mpfr3
pkgver=3.1.6
pkgrel=1
pkgdesc="Multiple-precision floating-point library"
url="https://www.mpfr.org/"
arch="all"
license="LGPL-3.0+"
depends=""
depends_dev="gmp-dev"
makedepends_build="texinfo"
makedepends_host="gmp-dev"
makedepends="$makedepends_build $makedepends_host"
subpackages="$pkgname-doc mpfr-dev"
source="https://www.mpfr.org/mpfr-$pkgver/mpfr-$pkgver.tar.xz"
builddir="$srcdir/mpfr-$pkgver"

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

check() {
	make check
}

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

dev() {
	replaces=mpfr
	default_dev
}

sha512sums="746ee74d5026f267f74ab352d850ed30ff627d530aa840c71b24793e44875f8503946bd7399905dea2b2dd5744326254d7889337fe94cfe58d03c4066e9d8054  mpfr-3.1.6.tar.xz"