live-bootstrap/sysa/automake-1.6.3/stage1.sh

27 lines
907 B
Bash
Raw Normal View History

# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
rm configure Makefile.in */Makefile.in */*/Makefile.in aclocal.m4 automake.info*
2021-03-17 00:24:37 +00:00
cp aclocal.in aclocal
cp m4/amversion.in m4/amversion.m4
}
src_compile() {
2021-03-17 00:24:37 +00:00
sed -i -e 's/@VERSION@/1.6.3/' -e 's/@APIVERSION@/1.6/' m4/amversion.m4
sed -i -e "s#@PERL@#${PREFIX}/bin/perl#" -e 's/@PACKAGE@/automake/' \
2021-03-17 00:24:37 +00:00
-e 's/@APIVERSION@/1.6/' -e 's/@VERSION@/1.6.3/' \
-e "s#@prefix@#${PREFIX}#" -e "s#@datadir@#${PREFIX}/share#" aclocal
}
src_install() {
mkdir -p "${DESTDIR}${PREFIX}"/share/automake-1.6/Automake
cp lib/Automake/*.pm "${DESTDIR}${PREFIX}"/share/automake-1.6/Automake/
install aclocal "${DESTDIR}${PREFIX}"/bin/aclocal-1.6
mkdir -p "${DESTDIR}${PREFIX}"/share/aclocal-1.6
cp -r m4/*.m4 "${DESTDIR}${PREFIX}"/share/aclocal-1.6/
}