capture_tiny: add tests, cleanup

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

View File

@@ -7,7 +7,7 @@ capturing modules to use in any particular situation and just use this one."
HOMEPAGE="https://metacpan.org/pod/Capture::Tiny"
COPYRIGHT="2009 by David Golden"
LICENSE="Apache v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-$portVersion.tar.gz"
CHECKSUM_SHA256="6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19"
SOURCE_DIR="Capture-Tiny-$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
}