40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
#!/bin/sh
|
|
name="gmp"
|
|
short_desc="GNU Multiple Precision Arithmetic Library"
|
|
desc="GMP is a free library for arbitrary precision arithmetic, operating
|
|
on signed integers, rational numbers, and floating point numbers.
|
|
There is no limit to the precision except the ones implied by the
|
|
available memory in the machine GMP runs on. GMP has a rich set of
|
|
functions, and the functions have a regular interface.
|
|
|
|
GMP is designed to be as fast as possible, both for small operands
|
|
and for huge operands. The speed is achieved by using fullwords as
|
|
the basic arithmetic type, by using fast algorithms, with carefully
|
|
optimized assembly code for the most common inner loops for a lot of
|
|
CPUs, and by a general emphasis on speed (instead of simplicity or
|
|
elegance).
|
|
|
|
GMP is believed to be faster than any other similar library. The
|
|
advantage for GMP increases with the operand sizes for certain
|
|
operations, since GMP in many cases has asymptotically faster
|
|
algorithms."
|
|
category="math"
|
|
version="6.3.0"
|
|
maintainer="ffqq@danwin1210.de"
|
|
www="https://gmplib.org/"
|
|
master_site="ftp://ftp.gnu.org/gnu/gmp"
|
|
source_name="$name-$version.tar.xz"
|
|
license_logic="single" # accepted values: single, and, or
|
|
licenses=("LGPL3")
|
|
|
|
build_dependencies=("devel/pkgconf" "lang/gcc" "devel/gmake")
|
|
run_dependencies=("system/glibc")
|
|
|
|
build_process() {
|
|
cd $name-$version || exit 1
|
|
./configure --prefix=/usr \
|
|
--host=none-linux-gnu || exit 1
|
|
make -j$(nproc) || exit 1
|
|
make DESTDIR="$TAMANDUA_STAGE_DIR" install || exit 1
|
|
rm -r $TAMANDUA_STAGE_DIR/usr/share/info
|
|
} |