app-arch/cpio: Use --program-prefix=g to avoid mv

Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Michał Górny
2022-10-30 15:50:18 +00:00
committed by Sam James
parent 4f3a2f4276
commit ee6a1856f0
+4 -4
View File
@@ -34,6 +34,8 @@ src_configure() {
$(use_enable nls)
--bindir="${EPREFIX}"/bin
--with-rmt="${EPREFIX}"/usr/sbin/rmt
# install as gcpio for better compatibility with non-GNU userland
--program-prefix=g
)
econf "${myeconfargs[@]}"
@@ -41,10 +43,8 @@ src_configure() {
src_install() {
default
# install as gcpio for better compatibility with non-GNU userland
# and make cpio as a symlink
mv "${ED}"/bin/{,g}cpio || die
# make cpio a symlink
dosym gcpio /bin/cpio
mv "${ED}"/usr/share/man/man1/{,g}cpio.1 || die
dosym gcpio.1 /usr/share/man/man1/cpio.1
}