diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 15:34:13 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-10-29 15:34:13 +0000 |
commit | 48d5a7ed5a1c66335aab51298699f1199313f89b (patch) | |
tree | 6a61879f911700ced7264693d7d450b2ff44aef0 /testing | |
parent | 2d88b54aa5731cc0de8df9b23ee051fb9f3dca60 (diff) | |
download | aports-48d5a7ed5a1c66335aab51298699f1199313f89b.tar.bz2 aports-48d5a7ed5a1c66335aab51298699f1199313f89b.tar.xz |
testing/perl-image-exiftool: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-image-exiftool/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-image-exiftool/APKBUILD b/testing/perl-image-exiftool/APKBUILD new file mode 100644 index 000000000..2451ef50d --- /dev/null +++ b/testing/perl-image-exiftool/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-image-exiftool +_pkgreal=Image-ExifTool +pkgver=9.01 +pkgrel=0 +pkgdesc="Read and write meta information" +url="http://search.cpan.org/dist/Image-ExifTool/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/E/EX/EXIFTOOL/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="715a07265f59f8c175e6ba38090e623a Image-ExifTool-9.01.tar.gz" |