git » perl-lwp-mediatypes.git » main » tree

[main] / PKGBUILD

# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=perl-lwp-mediatypes
pkgver=6.04
pkgrel=4
pkgdesc="Guess the media type of a file or a URL"
arch=('any')
url="https://metacpan.org/release/LWP-MediaTypes"
depends=('perl')
#checkdepends=('perl-test-fatal')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/LWP-MediaTypes-${pkgver}.tar.gz)
sha256sums=('8f1bca12dab16a1c2a7c03a49c5e58cce41a6fec9519f0aadfba8dad997919d9')

build() {
  cd "${srcdir}/LWP-MediaTypes-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

#check() {
#  cd "${srcdir}/LWP-MediaTypes-${pkgver}"
#  make test
#}

package() {
  cd "${srcdir}/LWP-MediaTypes-${pkgver}"
  make DESTDIR="$pkgdir" install
}