aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpc1/APKBUILD
blob: d97d49f8b4d95df5c5b20d9ffe638d03abb8dd10 (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=mpc1
pkgver=1.0.3
pkgrel=0
pkgdesc="Multiprecision C library"
url="http://www.multiprecision.org/"
arch="all"
license="LGPL2.1"
depends=
makedepends_host="gmp-dev mpfr-dev"
makedepends="$makedepends_host"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.multiprecision.org/mpc/download/mpc-$pkgver.tar.gz"

_builddir="$srcdir"/mpc-$pkgver

prepare() {
	cd "$_builddir"
}

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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="d6a1d5f8ddea3abd2cc3e98f58352d26  mpc-1.0.3.tar.gz"
sha256sums="617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3  mpc-1.0.3.tar.gz"
sha512sums="0028b76df130720c1fad7de937a0d041224806ce5ef76589f19c7b49d956071a683e2f20d154c192a231e69756b19e48208f2889b0c13950ceb7b3cfaf059a43  mpc-1.0.3.tar.gz"