updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / perl-test-www-selenium / PKGBUILD
blobb362e3ceb2f96105ee528852e49e1a8d9868e2b3
1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-test-www-selenium
4 pkgver=1.210.0
5 pkgrel=1
6 pkgdesc="Test applications using Selenium Remote Control"
7 arch=('i686 x86_64')
8 url="http://search.cpan.org/dist/Test-WWW-Selenium/"
9 license=('perl')
10 source=('http://search.cpan.org/CPAN/authors/id/L/LU/LUKEC/Test-WWW-Selenium-1.21.tar.gz')
11 md5sums=('dac6a88ecda017caabaefce578e14a11')
12 sha256sums=('4701a654b208b4a1f50986804591006bd32ef6a2c1287760deef7955085c0540')
13 depends=('perl-lwp-useragent' 'perl-uri')
14 makedepends=('perl-extutils-makemaker' 'perl-test-exception' 'perl-test-mock-lwp' 'perl-test-simple' 'perl-test-pod')
15 provides=('perl-www-selenium-util' 'perl-www-selenium-xmlparseutils' 'perl-www-selenium=0.930.0')
16 options=(!emptydirs)
18 build() {
19   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
20   if [ ! -z "$_dir" ]; then
21     cd $(dirname "$_dir")
22     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23     make  || return 1
24     make install DESTDIR="${pkgdir}" || return 1
26   else
27   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
28   if [ ! -z "$_dir" ]; then
29     cd $(dirname "$_dir")
30     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
31     ./Build  || return 1
32     ./Build install destdir=${pkgdir} || return 1
34   else
35     echo "error: failed to detect build method for $pkgname"
36     echo "you may be able to fix this by editing the PKGBUILD"
37     return 1
38   fi fi
40   # remove perllocal.pod and .packlist
41   find ${pkgdir} -name perllocal.pod -delete
42   find ${pkgdir} -name .packlist -delete
45 # vim:set ts=2 sw=2 et: