Files
haikuports/dev-perl/archive_zip/archive_zip-1.68.recipe
2024-08-04 18:33:08 +02:00

51 lines
986 B
Bash

SUMMARY="A perl interface to ZIP archive files"
DESCRIPTION="The Archive::Zip module allows a Perl program to create, manipulate, read, and write \
Zip archive files."
HOMEPAGE="https://metacpan.org/pod/Archive::Zip"
COPYRIGHT="2000-2020 Ned Kon"
LICENSE="Artistic"
REVISION="4"
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$portVersion.tar.gz"
CHECKSUM_SHA256="984e185d785baf6129c6e75f8eb44411745ac00bf6122fb1c8e822a3861ec650"
SOURCE_DIR="Archive-Zip-$portVersion"
ARCHITECTURES="any"
PROVIDES="
archive_zip = $portVersion
cmd:crc32
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
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
}