From 57e3e017f34f4d9b7d8813e15da86f3e2796c803 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 18 Nov 2018 03:03:56 +0000 Subject: user/perl-file-mimeinfo: new package --- user/perl-file-mimeinfo/APKBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 user/perl-file-mimeinfo/APKBUILD (limited to 'user/perl-file-mimeinfo') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2