2022-07-07 20:43:39 +01:00
|
|
|
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
2022-03-07 07:58:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
2021-03-28 23:18:33 +01:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-03-28 23:18:33 +01:00
|
|
|
|
2022-07-02 20:39:19 +01:00
|
|
|
rm -f doc/amhello-1.0.tar.gz doc/automake.info* doc/aclocal-1.11.1 doc/automake-1.11.1
|
2021-05-23 21:23:53 +01:00
|
|
|
|
2023-01-24 22:18:11 +00:00
|
|
|
# Building doc often causes race conditions, skip it
|
|
|
|
awk '/SUBDIRS/{sub("doc ", "", $0)} {print}' Makefile.am > Makefile.am.tmp
|
2023-02-18 03:07:17 +00:00
|
|
|
mv Makefile.am.tmp Makefile.am
|
2023-01-24 22:18:11 +00:00
|
|
|
|
2022-07-02 20:39:19 +01:00
|
|
|
AUTOCONF=autoconf-2.64 AUTOM4TE=autom4te-2.64 ./bootstrap
|
2021-03-28 23:18:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2022-07-02 20:39:19 +01:00
|
|
|
AUTORECONF=autoreconf-2.64 AUTOM4TE=autom4te-2.64 AUTOHEADER=autoheader-2.64 AUTOCONF=autoconf-2.64 ./configure --prefix="${PREFIX}"
|
2021-03-28 23:18:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2023-04-10 06:30:16 +01:00
|
|
|
AUTORECONF=autoreconf-2.64 AUTOM4TE=autom4te-2.64 AUTOHEADER=autoheader-2.64 AUTOCONF=autoconf-2.64 make "${MAKEJOBS}" MAKEINFO=true
|
2021-03-28 23:18:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2021-04-02 12:24:40 +01:00
|
|
|
make install MAKEINFO=true DESTDIR="${DESTDIR}"
|
2023-02-18 03:07:17 +00:00
|
|
|
rm "${DESTDIR}/usr/bin/automake"
|
2021-03-28 23:18:33 +01:00
|
|
|
}
|