aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpfr4/APKBUILD
blob: 3d988acabddfc4e7b7cbb905d753a5572ec18d81 (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
42
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpfr4
pkgver=4.0.2
pkgrel=3
pkgdesc="multiple-precision floating-point library"
url="https://www.mpfr.org/"
arch="all"
license="LGPL-3.0-or-later"
makedepends_build="texinfo"
makedepends_host="gmp-dev"
makedepends="$makedepends_build $makedepends_host"
subpackages="$pkgname-doc $pkgname-dev"
source="https://www.mpfr.org/mpfr-$pkgver/mpfr-$pkgver.tar.xz"
builddir="$srcdir/mpfr-$pkgver"

provides="mpfr=$pkgver-r$pkgrel"
replaces="mpfr"

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

check() {
	make check
}

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

dev() {
	provides="mpfr-dev=$pkgver-r$pkgrel"
	replaces="mpfr-dev"
	default_dev
}

sha512sums="d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88  mpfr-4.0.2.tar.xz"