diff --git a/packages/app-shells/ksh/ksh-2020.0.0.exheres-0 b/packages/app-shells/ksh/ksh-2020.0.0.exheres-0 new file mode 100644 index 0000000..8493133 --- /dev/null +++ b/packages/app-shells/ksh/ksh-2020.0.0.exheres-0 @@ -0,0 +1,7 @@ +# Copyright 2019 Danilo Spinella +# Distributed under the terms of the GNU General Public License v2 + +require ksh + +PLATFORMS="~amd64 ~x86" + diff --git a/packages/app-shells/ksh/ksh.exlib b/packages/app-shells/ksh/ksh.exlib index 63cadc1..4f288e4 100644 --- a/packages/app-shells/ksh/ksh.exlib +++ b/packages/app-shells/ksh/ksh.exlib @@ -2,9 +2,9 @@ # Copyright 2019 Danilo Spinella # Distributed under the terms of the GNU General Public License v2 -require github [ user='att' pn='ast' ] meson +require github [ user='ksh2020' ] meson -export_exlib_phases src_install +export_exlib_phases src_prepare src_install SUMMARY="The Korn Shell" @@ -33,6 +33,13 @@ MESON_SRC_CONFIGURE_TESTS=( # Tests are failing RESTRICT="test" +ksh_src_prepare() { + meson_src_prepare + + edo sed -i -e "s;install_prefix + '/bin';'/usr/$(exhost --target)/bin';" \ + "${MESON_SOURCE}"/src/cmd/ksh93/meson.build +} + ksh_src_install() { edo sed -i "$ a master_doc = 'index'" ../${PNV}/src/cmd/${PN}93/docs/conf.py meson_src_install