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

33 lines
661 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
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
autoreconf -f -i
# Pre-build texinfo files
find . -name '*.info*' -delete
2021-04-03 18:40:48 +01:00
}
src_configure() {
./configure \
--prefix="${PREFIX}" \
--build=i386-unknown-linux-gnu \
--host=i386-unknown-linux-gnu \
--target=i386-unknown-linux-gnu \
--libdir="${PREFIX}/lib/musl"
}
src_compile() {
make MAKEINFO=true DESTDIR="${DESTDIR}"
}
src_install() {
make MAKEINFO=true DESTDIR="${DESTDIR}" install
}