aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-image-exiftool/APKBUILD
blob: 8ee46b6a6283c1517feaea046efb2731add4d3fd (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=11.13
pkgrel=0
pkgdesc="Perl module for editing exif metadata in files"
url="https://www.sno.phy.queensu.ca/~phil/exiftool"
arch="noarch"
license="Artistic-1.0-Perl GPL-1.0-or-later"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc exiftool"
source="https://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="f6765b0f08b49c1492a3aecc69130b27126a1090cc5de7158a5cc2666d2f58ec4018faf23bdb48a0bcfd9f89838e67cbeff4fef68b085ad2ae97a7137b9dbf3c  Image-ExifTool-11.13.tar.gz"