1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-xhtml-mediawiki
6 pkgdesc="Convert MediaWiki text to xhtml"
8 url="http://search.cpan.org/dist/XHTML-MediaWiki/"
10 source=('http://search.cpan.org/CPAN/authors/id/G/GA/GAM/XHTML-MediaWiki-0.11.tar.gz')
11 md5sums=('28d61f37a3b1b996e69bb5fb389ccfcd')
12 sha256sums=('890432854761713acb75affd4666f3c8dc36390431a33b82e6136f10df6c8e1d')
13 depends=('perl-html-parser' 'perl-params-validate>=0.90' 'perl-uri' 'perl>=5.0.6')
14 makedepends=('perl-module-build>=0.360.0' 'perl-test-xml')
18 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
19 if [ ! -z "$_dir" ]; then
21 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23 make install DESTDIR="${pkgdir}" || return 1
26 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
27 if [ ! -z "$_dir" ]; then
29 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
31 ./Build install destdir=${pkgdir} || return 1
34 echo "error: failed to detect build method for $pkgname"
35 echo "you may be able to fix this by editing the PKGBUILD"
39 # remove perllocal.pod and .packlist
40 find ${pkgdir} -name perllocal.pod -delete
41 find ${pkgdir} -name .packlist -delete
44 # vim:set ts=2 sw=2 et: