summaryrefslogtreecommitdiff
path: root/user/perl-file-mimeinfo
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-file-mimeinfo')
-rw-r--r--user/perl-file-mimeinfo/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-file-mimeinfo/APKBUILD b/user/perl-file-mimeinfo/APKBUILD
new file mode 100644
index 000000000..f1f6f36f3
--- /dev/null
+++ b/user/perl-file-mimeinfo/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-mimeinfo
+_pkgname=File-MimeInfo
+pkgver=0.29
+pkgrel=0
+pkgdesc="Determine file types from Perl"
+url="https://metacpan.org/release/File-MimeInfo"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-file-basedir perl-file-desktopentry perl-path-tiny
+ shared-mime-info"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/MI/MICHIELB/File-MimeInfo-$pkgver.tar.gz"
+builddir="$srcdir/File-MimeInfo-$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
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="3b012843a0934e2df78a28e52efec3cbe10b06fd2be7f3d63f64309752240af2e7ef9440a839aa170197f1037baee5fdcf1c1303fd57349841f37ee7001b68dd File-MimeInfo-0.29.tar.gz"