2021-03-17 22:17:11 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-03-17 22:17:11 +00:00
|
|
|
|
2022-05-09 19:55:26 +01:00
|
|
|
rm -- Makefile.in */Makefile.in */*/Makefile.in aclocal.m4 configure
|
2021-04-19 00:44:21 +01:00
|
|
|
rm doc/standards.info doc/autoconf.info
|
|
|
|
|
2021-03-17 22:17:11 +00:00
|
|
|
aclocal-1.6
|
|
|
|
cat config/m4.m4 >> aclocal.m4
|
|
|
|
autoconf-2.52
|
|
|
|
automake-1.6
|
|
|
|
|
|
|
|
# Not supported by autoconf-2.52
|
|
|
|
sed -i "s#@abs_top_builddir@#$PWD#" tests/wrappl.in
|
|
|
|
sed -i "s#@abs_top_srcdir@#$PWD#" tests/wrappl.in
|
|
|
|
|
|
|
|
# Install autoconf data files into versioned directory
|
|
|
|
for file in */*/Makefile.in */Makefile.in Makefile.in; do
|
2022-05-09 19:55:26 +01:00
|
|
|
sed -i '/^pkgdatadir/s:$:-@VERSION@:' "$file"
|
2021-03-17 22:17:11 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
./configure --prefix="${PREFIX}" --program-suffix=-2.53
|
|
|
|
}
|
2021-03-20 00:33:56 +00:00
|
|
|
|
|
|
|
src_compile() {
|
2021-04-02 12:24:40 +01:00
|
|
|
make MAKEINFO=true DESTDIR="${DESTDIR}"
|
2021-03-20 00:33:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2021-04-02 12:24:40 +01:00
|
|
|
make install MAKEINFO=true DESTDIR="${DESTDIR}"
|
2021-03-20 00:33:56 +00:00
|
|
|
}
|