aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpc1/APKBUILD
blob: 85a48b7b71b2cd53c3bb2c13d4cc34b34510b687 (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=mpc1
pkgver=1.1.0
pkgrel=1
pkgdesc="Multiprecision C library"
url="http://www.multiprecision.org/"
arch="all"
license="LGPL-3.0-or-later"
depends=
makedepends_host="gmp-dev mpfr-dev"
makedepends="$makedepends_host"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/mpc/mpc-$pkgver.tar.gz"

builddir="$srcdir"/mpc-$pkgver

build() {
	cd "$builddir"
	# workaround for a bug in configure script
	EGREP=egrep \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--with-sysroot="${CBUILDROOT}" \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-shared
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="72d657958b07c7812dc9c7cbae093118ce0e454c68a585bfb0e2fa559f1bf7c5f49b93906f580ab3f1073e5b595d23c6494d4d76b765d16dde857a18dd239628  mpc-1.1.0.tar.gz"