file_slurp: cleanup, add tests

This commit is contained in:
Joachim Mairböck
2024-06-09 21:00:45 +02:00
parent a951e02e97
commit a19b648c0a

View File

@@ -5,7 +5,7 @@ contents and to be very efficient. There is also a sub to read in all the files
HOMEPAGE="https://metacpan.org/pod/File::Slurp"
COPYRIGHT="2003-2022 Uri Guttman"
LICENSE="Artistic"
REVISION="1"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-$portVersion.tar.gz"
CHECKSUM_SHA256="4c3c21992a9d42be3a79dd74a3c83d27d38057269d65509a2f555ea0fb2bc5b0"
SOURCE_DIR="File-Slurp-$portVersion"
@@ -36,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
}