exiftool: bump version, cleanup like other perl packages

This commit is contained in:
Joachim Mairböck
2024-07-06 19:38:05 +02:00
parent 05dd21fa4b
commit 01dde60b32

View File

@@ -3,23 +3,26 @@ DESCRIPTION="ExifTool is both a Perl library and a command-line script that \
enables editing of the metadata of a large variety of files. This includes all \
major image formats which support metadata as well as the vendor-specific \
metadata of numerous digital cameras."
HOMEPAGE="https://www.sno.phy.queensu.ca/~phil/exiftool/"
COPYRIGHT="2003-2023 Phil Harvey"
HOMEPAGE="https://exiftool.org/"
COPYRIGHT="2003-2024 Phil Harvey"
LICENSE="GNU GPL v1
Artistic"
REVISION="1"
SOURCE_URI="https://github.com/exiftool/exiftool/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="1cbb0b319ddb19c6baf50c633ed6378b20bb9d3167f31aacb402e3fdd53cb7eb"
SOURCE_URI="https://exiftool.org/Image-ExifTool-$portVersion.tar.gz"
CHECKSUM_SHA256="7da3428d374cb18b2ab7011278d29b85bcac560e0d551efc7a6704ef0e7f2c21"
SOURCE_DIR="Image-ExifTool-$portVersion"
ARCHITECTURES="any"
PROVIDES="
exiftool = $portVersion
cmd:exiftool = $portVersion
image_exiftool = $portVersion # this is the perl module name
"
REQUIRES="
haiku
cmd:perl >= 5.0.0
cmd:perl
vendor_perl
"
BUILD_REQUIRES="
@@ -38,19 +41,12 @@ BUILD()
INSTALL()
{
make install
make pure_install
cd "$libDir"/perl5
# delete 5.x.y/`uname -m`-haiku/perllocal.pod
perllocal=*/*-haiku/perllocal.pod
rm $perllocal
rmdir -p `dirname $perllocal`
cd vendor_perl/5.*
# delete `uname -m`-haiku/auto/auto/Image/ExifTool/.packlist
packlist=*-haiku/auto/Image/ExifTool/.packlist
rm $packlist
rmdir -p `dirname $packlist`
# 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()