updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / perl-html-wikiconverter / PKGBUILD
blob14f9642b4b0d1af1f637bad680255ee6d2397780
1 # CPAN Name  : HTML-WikiConverter
2 # Contributor: Max Roder <maxroder@web.de>
3 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
4 # Generator  : CPANPLUS::Dist::Arch 1.19
6 pkgname='perl-html-wikiconverter'
7 pkgver='0.68'
8 pkgrel='3'
9 pkgdesc="Convert HTML to wiki markup"
10 arch=('any')
11 license=('PerlArtistic' 'GPL')
12 options=('!emptydirs')
13 depends=('perl-class-data-inheritable>=0.02' 'perl-css>=1.07' 'perl-html-parser' 'perl-html-tagset>=3.04' 'perl-html-tree>=3.18' 'perl-params-validate>=0.77' 'perl-uri>=1.35')
14 makedepends=()
15 url='http://search.cpan.org/dist/HTML-WikiConverter'
16 source=('http://search.cpan.org/CPAN/authors/id/D/DI/DIBERRI/HTML-WikiConverter-0.68.tar.gz'
17                 'no-useragent-tests.patch')
18 md5sums=('e6d8b16c23b6f38c51d8585f3423aca9'
19                 '8006fb9018494d74ff117a8753f1e66b')
20 sha512sums=('e80e9053dd01dfbea587ed2816a282abc4083021d3d80b72b1e2ea2d1ce0b45226bcf0c863beddc7a2bc15fece7b8bfa78e33ee409460776a5ef2de57beae7ee'
21                         '709a33fb8a97dca9edf22865eb1781d86638432b840b9ed47897982155ce1243c730585c17d7497113698577c4107000571f001eae40cd76ffeb80da98ab68fd')
22 _distdir="${srcdir}/HTML-WikiConverter-0.68"
24 build() {
25   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
26       PERL_AUTOINSTALL=--skipdeps                            \
27       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
28       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
29       MODULEBUILDRC=/dev/null
31     cd "$_distdir"
32     patch -p1 < ../no-useragent-tests.patch
34     /usr/bin/perl Makefile.PL
35     make
36   )
39 check() {
40   cd "$_distdir"
41   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
42     make test
43   )
46 package() {
47   cd "$_distdir"
48   make install
49   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
52 # Local Variables:
53 # mode: shell-script
54 # sh-basic-offset: 2
55 # End:
56 # vim:set ts=2 sw=2 et: