summaryrefslogblamecommitdiff
path: root/user/perl-file-mimeinfo/APKBUILD
blob: f1f6f36f36a3c7c260b2eca46ea26f35d7688548 (plain) (tree)


































                                                                                                                                                                        
# 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"