# Maintainer: Natanael Copa pkgname=mpc1 pkgver=1.0.1 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 \ --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 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="b32a2e1a3daa392372fbd586d1ed3679 mpc-1.0.1.tar.gz"