diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 03:03:56 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 03:03:56 +0000 |
commit | 57e3e017f34f4d9b7d8813e15da86f3e2796c803 (patch) | |
tree | aa777fa1bd4de7158939f9b6b5838381c83c4088 /user/perl-file-mimeinfo/APKBUILD | |
parent | ef92def08873383eef28fb2b4ba8151bc4366a4b (diff) | |
download | packages-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/APKBUILD')
-rw-r--r-- | user/perl-file-mimeinfo/APKBUILD | 35 |
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" |