Make tar installable under packaging

This commit is contained in:
fosslinux 2022-01-14 22:01:15 +11:00
parent 0b7bd2a46d
commit f4d43e2113
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
@ -26,4 +27,7 @@ src_compile() {
src_install() {
make install PREFIX="${PREFIX}" MAKEINFO="true" DESTDIR="${DESTDIR}"
# Manually install tar (cannot replace tar while running)
cp "${DESTDIR}${PREFIX}/bin/tar" "${PREFIX}/bin/tar"
rm "${DESTDIR}${PREFIX}/bin/tar"
}