summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-test-requires/PKGBUILD
blob: ac440ad0e3b7ea9aa7f1a7936bbdf0ca9ed1d601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id$
# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Justin Davis <jrcd83@gmail.com>

pkgname=perl-test-requires
pkgver=0.10
pkgrel=3
pkgdesc="Checks to see if the module can be loaded"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
url='http://search.cpan.org/dist/Test-Requires'
source=("http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-$pkgver.tar.gz")
md5sums=('0d5da779609d0c8fa6f796b45ff8c6f3')

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

check() {
  cd "$srcdir"/Test-Requires-$pkgver
  make test
}

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