archive_zip: cleanup, add tests

This commit is contained in:
Joachim Mairböck
2023-09-17 10:27:37 +02:00
parent c6c56db523
commit 398c60e80b

View File

@@ -4,7 +4,7 @@ Zip archive files."
HOMEPAGE="https://metacpan.org/pod/Archive::Zip"
COPYRIGHT="2000-2020 Ned Kon"
LICENSE="Artistic"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$portVersion.tar.gz"
CHECKSUM_SHA256="984e185d785baf6129c6e75f8eb44411745ac00bf6122fb1c8e822a3861ec650"
SOURCE_DIR="Archive-Zip-$portVersion"
@@ -13,6 +13,7 @@ ARCHITECTURES="any"
PROVIDES="
archive_zip = $portVersion
cmd:crc32
"
REQUIRES="
haiku
@@ -35,5 +36,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
}