aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpc1/APKBUILD
blob: 572b496adc5dd6eb2f264a941b6c9af35b519c21 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpc1
pkgver=1.0
pkgrel=0
pkgdesc="Multiprecision C library"
url="http://www.multiprecision.org/"
arch="all"
license="LGPL-2.1"
depends=
makedepends="gmp-dev mpfr-dev"
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 --prefix=/usr \
		--build=${CBUILD} \
		--host=${CHOST} \
		--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
	rm "$pkgdir"/usr/lib/*.la || return 1
}

md5sums="13370ceb2e266c5eeb2f7e78c24b7858  mpc-1.0.tar.gz"