blob: 1b94647b51dc2baf4734f5b832f85d26acbf0318 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-file-mimeinfo
_pkgreal=File-MimeInfo
_author=MICHIELB
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.33
pkgrel=0
pkgdesc="Determine file types from Perl"
url="https://metacpan.org/release/File-MimeInfo"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-encode-locale 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/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="5fbba13775079da56928175f48db1c1ab8ac4d7fa3e85bdb5384c4021cab7cf8c363a3d8219cf34318136b1470e32163abae7c37a119416a5e510d8d07848c9d File-MimeInfo-0.33.tar.gz"
|