aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-file-mimeinfo
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-02-04 13:06:28 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-02-04 13:06:28 +0200
commit9b7df90c57c69197e81f20257aa48832de0d127f (patch)
tree08aa5c1ac4fea920b8d133d6253b38e0e76f2999 /testing/perl-file-mimeinfo
parenta5a16ff6f90a387e57642cbdc9305f944c56d1d8 (diff)
downloadaports-9b7df90c57c69197e81f20257aa48832de0d127f.tar.bz2
aports-9b7df90c57c69197e81f20257aa48832de0d127f.tar.xz
testing/perl-file-mimeinfo: new aport
Determine file types http://search.cpan.org/dist/File-MimeInfo/
Diffstat (limited to 'testing/perl-file-mimeinfo')
-rw-r--r--testing/perl-file-mimeinfo/APKBUILD41
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"