summaryrefslogtreecommitdiff
path: root/user/perl-file-mimeinfo
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 03:03:56 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 03:03:56 +0000
commit57e3e017f34f4d9b7d8813e15da86f3e2796c803 (patch)
treeaa777fa1bd4de7158939f9b6b5838381c83c4088 /user/perl-file-mimeinfo
parentef92def08873383eef28fb2b4ba8151bc4366a4b (diff)
downloadpackages-57e3e017f34f4d9b7d8813e15da86f3e2796c803.tar.gz
packages-57e3e017f34f4d9b7d8813e15da86f3e2796c803.tar.bz2
packages-57e3e017f34f4d9b7d8813e15da86f3e2796c803.tar.xz
packages-57e3e017f34f4d9b7d8813e15da86f3e2796c803.zip
user/perl-file-mimeinfo: new package
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"