live-bootstrap/sysa/automake-1.10.3/automake-1.10.3.sh

31 lines
952 B
Bash
Raw Normal View History

# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
2021-03-25 20:39:08 +00:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
2021-03-25 20:39:08 +00:00
2021-05-26 00:48:05 +01:00
rm doc/amhello-1.0.tar.gz doc/automake.info*
2021-05-23 21:23:53 +01:00
sed -i 's/autoreconf/autoreconf-2.61/' doc/Makefile.am
AUTOM4TE=autom4te-2.61 AUTOCONF=autoconf-2.61 AUTOHEADER=autoheader-2.61 AUTORECONF=autoreconf-2.61 ./bootstrap
2021-03-25 20:39:08 +00:00
}
src_configure() {
AUTORECONF=autoreconf-2.61 AUTOHEADER=autoheader-2.61 AUTOCONF=autoconf-2.61 AUTOM4TE=autom4te-2.61 ./configure CC=tcc --prefix="${PREFIX}"
2021-03-25 20:39:08 +00:00
}
src_compile() {
AUTOM4TE=autom4te-2.61 make MAKEINFO=true CC=tcc
2021-03-25 20:39:08 +00:00
}
src_install() {
make install MAKEINFO=true DESTDIR="${DESTDIR}"
rm "${DESTDIR}${PREFIX}/share/doc/automake/amhello-1.0.tar.gz"
2022-07-07 20:43:39 +01:00
rm "${DESTDIR}/usr/bin/automake" "${DESTDIR}/usr/bin/aclocal"
# Delete some stray directories
rm -r "${DESTDIR}${SOURCES}"
2021-03-25 20:39:08 +00:00
}