1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-xml-semanticdiff
6 pkgdesc="Perl extension for comparing XML documents."
8 url="http://search.cpan.org/dist/XML-SemanticDiff/"
10 source=('http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-SemanticDiff-1.0000.tar.gz')
11 md5sums=('013a0f5d4e5347deda12e1e90e3ab9e7')
12 sha256sums=('539ab9e1ee13d3fb68a60d9bfc89ea9474c2bdc58f5c341381cdee3d06a93f17')
13 depends=('perl-digest-md5' 'perl-encode' 'perl-xml-parser' 'perl>=5.0.6')
14 makedepends=('perl-module-build>=0.340.0')
15 provides=('perl-xml-semanticdiff-basichandler=0.940.0')
19 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
20 if [ ! -z "$_dir" ]; then
22 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
24 make install DESTDIR="${pkgdir}" || return 1
27 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
28 if [ ! -z "$_dir" ]; then
30 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
32 ./Build install destdir=${pkgdir} || return 1
35 echo "error: failed to detect build method for $pkgname"
36 echo "you may be able to fix this by editing the PKGBUILD"
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: