db-move: moved gnome-clocks from [testing] to [extra] (x86_64)
[arch-packages.git] / perl-lwp-mediatypes / trunk / PKGBUILD
blob4d68b32a2834658e384abbcfdc7f49af6d274f1b
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=perl-lwp-mediatypes
4 pkgver=6.04
5 pkgrel=3
6 pkgdesc="Guess the media type of a file or a URL"
7 arch=('any')
8 url="https://metacpan.org/release/LWP-MediaTypes"
9 depends=('perl')
10 checkdepends=('perl-test-fatal')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 source=(https://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/LWP-MediaTypes-${pkgver}.tar.gz)
14 sha256sums=('8f1bca12dab16a1c2a7c03a49c5e58cce41a6fec9519f0aadfba8dad997919d9')
16 build() {
17   cd "${srcdir}/LWP-MediaTypes-${pkgver}"
18   perl Makefile.PL INSTALLDIRS=vendor
19   make
22 check() {
23   cd "${srcdir}/LWP-MediaTypes-${pkgver}"
24   make test
27 package() {
28   cd "${srcdir}/LWP-MediaTypes-${pkgver}"
29   make DESTDIR="$pkgdir" install