archive_extract: cleanup, add tests (#9403)

* archive_extract: remove unneeded architure-specific files

these are:
 * `perllocal.pod` (in archlib): this is a documentation file intended to list all locally installed packages, but the file is shared by all packages and is therefore useless.
 * `.packlist` (in vendorarch): this is package specific and lists all other installed files. It is probably used for supporting `make uninstall` which isn't needed for packaged software.

* archive_extract: use `make pure_install` to deal with perllocal.pod, add tests
This commit is contained in:
Joachim Mairböck
2024-06-09 16:51:15 +02:00
committed by GitHub
parent 75eadb449c
commit 40c15d6413

View File

@@ -6,7 +6,7 @@ commandline tools"
HOMEPAGE="https://metacpan.org/pod/Archive::Extract"
COPYRIGHT="2006-2021 Andy Lester"
LICENSE="Artistic"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Extract-$portVersion.tar.gz"
CHECKSUM_SHA256="cffcf135cd0622287d3b02154f7d6716495449fcaed03966621948e25ea5f742"
SOURCE_DIR="Archive-Extract-$portVersion"
@@ -38,5 +38,15 @@ BUILD()
INSTALL()
{
make install DESTDIR="${DESTDIR}"
make pure_install
# remove architecture-specific files
cd $prefix
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
}
TEST()
{
make test
}