mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 15:07:15 +08:00
39 lines
958 B
Bash
39 lines
958 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=libmpc
|
|
pkgver=1.0.1
|
|
pkgrel=1
|
|
# dash the next line if you want to skip the tests
|
|
_test=1
|
|
pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision"
|
|
arch=('x86_64')
|
|
url="http://www.multiprecision.org"
|
|
license=('LGPL')
|
|
depends=('mpfr>=3.1.1')
|
|
options=('!libtool' 'log')
|
|
install=libmpc.install
|
|
source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz{,.sig})
|
|
md5sums=('b32a2e1a3daa392372fbd586d1ed3679'
|
|
'c064863fbbb5831ba4f75f1181333862')
|
|
|
|
build() {
|
|
cd "${srcdir}/mpc-${pkgver}"
|
|
./configure --prefix=/usr
|
|
make
|
|
|
|
if [ -n "${_test}" ]; then
|
|
echo "<<< STARTING TESTS >>>"
|
|
make check
|
|
echo "<<< ENDING TESTS >>>"
|
|
fi
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/mpc-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
mv ${pkgdir}/usr/share/info/{mpc,libmpc}.info
|
|
}
|