summaryrefslogtreecommitdiff
path: root/cpan2cruxPorts/p5-image-exiftool/Pkgfile
blob: a3adca28552936ea6c6507c3a7323a7da0772368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Description:	Read and write meta information
# URL:		http://search.cpan.org/~exiftool/Image-ExifTool/
# Maintainer:	Erich Eckner, crux at eckner dot net
# Depends on:	perl
# Optional:	p5-archive-zip p5-posix-strptime

name=p5-image-exiftool
version=12.30
release=1
source=(http://search.cpan.org/CPAN/authors/id/E/EX/EXIFTOOL/Image-ExifTool-${version}.tar.gz)

build() {
	cd Image-ExifTool-$version

	perl Makefile.PL
	make OPTIMIZE="$CFLAGS" DESTDIR="$PKG" install

	find "$PKG" -depth \
		-type f \( -name .packlist -o -name \*.bs -o -name autosplit.ix -o -name perllocal.pod \) -delete , \
		-type d -empty -exec rmdir {} +
	find "$PKG" \
		-type f -name README -delete
}