mime_base32: new perl module recipe

This commit is contained in:
Joachim Mairböck
2025-12-24 14:48:27 +01:00
parent 24d3916ed0
commit a0c5307a66

View File

@@ -0,0 +1,57 @@
SUMMARY="Base32 encoder and decoder"
DESCRIPTION="This module is for encoding/decoding data much the way that MIME::Base64 does.
Prior to version 1.0, MIME::Base32 used the base32hex (or [0-9A-V]) encoding and decoding methods \
by default. If you need to maintain that behavior, please call encode_base32hex or \
decode_base32hex functions directly.
Now, in accordance with RFC-3548, Section 5, MIME::Base32 uses the encode_base32 and \
decode_base32 functions by default."
HOMEPAGE="https://metacpan.org/pod/MIME::Base32"
COPYRIGHT="2003-2010 Daniel Peder
2015-2016 Chase Whitener
2016 Jens Rehsack"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/MIME-Base32-$portVersion.tar.gz"
CHECKSUM_SHA256="ab21fa99130e33a0aff6cdb596f647e5e565d207d634ba2ef06bdbef50424e99"
SOURCE_DIR="MIME-Base32-$portVersion"
ARCHITECTURES="any"
PROVIDES="
mime_base32 = $portVersion
"
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
}