summaryrefslogtreecommitdiffstats
path: root/main/libmpc/APKBUILD
blob: 094ed9e3e386bfb3706b9485a40857fb30d3ff2c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpc
pkgver=0.8.2
pkgrel=0
pkgdesc="Multiprecision C library"
url="http://www.multiprecision.org/"
license="LGPL-2.1"
depends=
makedepends="gmp5-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"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

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

md5sums="e98267ebd5648a39f881d66797122fb6  mpc-0.8.2.tar.gz"