live-bootstrap/sysc/gmp-6.2.1/gmp-6.2.1.sh

34 lines
720 B
Bash
Raw Normal View History

2021-04-03 18:40:48 +01:00
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
urls="http://mirrors.kernel.org/gnu/gmp/gmp-6.2.1.tar.xz"
2021-04-03 18:40:48 +01:00
src_prepare() {
default
2021-04-03 18:40:48 +01:00
# Remove bison and flex generated files
rm demos/calc/calc.{c,h} demos/calc/calclex.c
2022-07-07 20:43:39 +01:00
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fi
2021-07-15 17:59:11 +01:00
# Pre-built texinfo files
find . -name '*.info*' -delete
2021-04-03 18:40:48 +01:00
}
src_configure() {
./configure \
--prefix="${PREFIX}" \
2021-06-30 18:04:05 +01:00
--libdir="${PREFIX}/lib/musl" \
--build=i386-unknown-linux-musl \
2021-06-30 18:04:05 +01:00
--disable-shared
2021-04-03 18:40:48 +01:00
}
src_compile() {
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}