blob: bd71b9d8543a6ffe424ec46e9b63b2770ba4e923 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpfr3
pkgver=3.1.1
pkgrel=1
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="91d51c41fcf2799e4ee7a7126fc95c17 mpfr-3.1.1.tar.xz"
|