aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-image-exiftool/APKBUILD
blob: 38f44302c3bb686ac38128908dc312b8cc7252a1 (plain) (blame)
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=12.25
pkgrel=0
pkgdesc="Perl module for editing exif metadata in files"
url="https://exiftool.org/"
arch="noarch"
license="Artistic-1.0-Perl GPL-1.0-or-later"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc exiftool"
source="https://exiftool.org/Image-ExifTool-$pkgver.tar.gz"

# secfixes:
#   12.24-r0:
#     - CVE-2021-22204

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

check() {
	make test
}

package() {
	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="bc549b021cf608959ef72f98f24ddd60f331edc0c430593aa076d6967357488430369b6ab7b5b0ebfa7d6dc3b79a77dff9ffd0b740cf334a5062cd46a4741bf7  Image-ExifTool-12.25.tar.gz"