From 398c60e80b4a0ab0edfc416d82cb35036e13fc4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 17 Sep 2023 10:27:37 +0200 Subject: [PATCH] archive_zip: cleanup, add tests --- dev-perl/archive_zip/archive_zip-1.68.recipe | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dev-perl/archive_zip/archive_zip-1.68.recipe b/dev-perl/archive_zip/archive_zip-1.68.recipe index 2498719d8..d72bece9c 100644 --- a/dev-perl/archive_zip/archive_zip-1.68.recipe +++ b/dev-perl/archive_zip/archive_zip-1.68.recipe @@ -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 }