mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 07:57:13 +08:00
37 lines
927 B
Bash
37 lines
927 B
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=mpfr
|
|
pkgver=3.0.1
|
|
pkgrel=1
|
|
# dash the next line if you want to skip the tests
|
|
_test=1
|
|
pkgdesc="Multiple-precision floating-point library"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.mpfr.org/"
|
|
license=('LGPL')
|
|
depends=('gmp>=5.0')
|
|
options=('!libtool' 'log')
|
|
install=mpfr.install
|
|
source=(http://www.mpfr.org/mpfr-current/mpfr-${pkgver}.tar.xz)
|
|
md5sums=('645882d9d179113a70af84d27086ed9f')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --enable-thread-safe --enable-shared
|
|
make
|
|
|
|
if [ -n "${_test}" ]; then
|
|
echo "<<< STARTING TESTS >>>"
|
|
make check
|
|
echo "<<< ENDING TESTS >>>"
|
|
fi
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
} |