diff options
Diffstat (limited to 'testing/perl-file-mimeinfo/APKBUILD')
-rw-r--r-- | testing/perl-file-mimeinfo/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-file-mimeinfo/APKBUILD b/testing/perl-file-mimeinfo/APKBUILD new file mode 100644 index 0000000000..b75d2e67d8 --- /dev/null +++ b/testing/perl-file-mimeinfo/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-file-mimeinfo +_pkgreal=File-MimeInfo +pkgver=0.26 +pkgrel=0 +pkgdesc="Determine file types" +url="http://search.cpan.org/dist/File-MimeInfo/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-file-desktopentry perl-file-basedir " +depends="$cpandepends shared-mime-info" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/$_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="1caf2827a845d8b734ea1c357bd3d89c File-MimeInfo-0.26.tar.gz" +sha256sums="544f58631a383460754a233a1cb00572c57caa04cc3c11fa7c242caf5f89ceb3 File-MimeInfo-0.26.tar.gz" +sha512sums="ac63d16a1c5761f853e639a020f38cdebb861ea60a6868e6279c15bc2447fd6f7042396e77f116d00c7c858fe265ac84809bf24e8f5c355253442ef21fd40368 File-MimeInfo-0.26.tar.gz" |