blob: d06e075b42280f48b1909c865763c75c61f64af1 (
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.34
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="5ce15976aa5ed59563ae64339aeefed426e97aa22448005e0dd50b8fee32237faafc59308cdad9d7eea6c3e3b58c41032d1f4fa670bc17d4ad58ca07743d015f File-MimeInfo-0.34.tar.gz"
|