2021-04-13 13:35:28 +01:00
|
|
|
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
# We manually compile here because ./Configure uses metaconfig itself
|
|
|
|
# *sigh*
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
sed 's/@PERLVER@/5.10.1/' config.sh.in > config.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cd mcon
|
|
|
|
./mconfig.SH
|
|
|
|
perl ../bin/perload -o mconfig > metaconfig
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd kit
|
|
|
|
./manifake.SH
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2023-03-05 22:05:29 +00:00
|
|
|
mkdir -p "${DESTDIR}${PREFIX}/bin/" "${DESTDIR}${PREFIX}/lib/perl5/5.10.1"
|
|
|
|
install mcon/metaconfig "${DESTDIR}${PREFIX}/bin/"
|
|
|
|
install kit/manifake "${DESTDIR}${PREFIX}/bin/"
|
|
|
|
cp -r mcon/U/ "${DESTDIR}${PREFIX}/lib/perl5/5.10.1/"
|
2021-04-13 13:35:28 +01:00
|
|
|
}
|