aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-image-exiftool/APKBUILD
blob: 6631c935bc8d007c62e4198c43c17b4279511ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-image-exiftool
pkgver=10.83
pkgrel=0
pkgdesc="Perl module for editing exif metadata in files"
url="http://www.sno.phy.queensu.ca/~phil/exiftool"
arch="noarch"
license="Perl"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc exiftool"
source="http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-$pkgver.tar.gz"

builddir="$srcdir"/Image-ExifTool-$pkgver
build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find "$pkgdir" -name perllocal.pod -delete
	find "$pkgdir" -name .packlist -delete
}

exiftool() {
	pkgdesc="Tool for editing exif metadata in files"
	depends="perl-image-exiftool"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="ea26b1eee2312cf0793b0f2f7b29b4f29f0a68c50ab6ad0a9844c783c8332b7382d87f5440ba80af5c520f4ad2ee17f32342fea8eca051d01fd6a8f6e8d7363c  Image-ExifTool-10.83.tar.gz"