summaryrefslogtreecommitdiff
path: root/cpan2cruxPorts/p5-image-exiftool/Pkgfile
blob: 040df9d1251e96f3fe2baeac737cf7a0b829e2f6 (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=11.01
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
}