# Maintainer: Erich Eckner # Generator : neuesPerlPaket (7a589202ce266b15e6e8f34ddfb805093ba7f16e64bbfa81b115133edde2e298f11971b376ba22faf61d0371b1e3eddcf51bc530a4c5bd76e486299dde8985ee) pkgname='perl-html-restrict' pkgver='2.2.2' pkgrel='1' pkgdesc='Strip unwanted HTML tags and attributes' arch=('x86_64' 'i686') license=('PerlArtistic' 'GPL') options=('!emptydirs') depends=('perl-carp' 'perl-data-dump' 'perl-html-parser' 'perl-list-moreutils' 'perl-moo>=1.002000' 'perl-scalar-list-utils' 'perl-moo' 'perl-type-tiny>=1.000001' 'perl-uri' 'perl-namespace-clean') makedepends=('perl-module-build>=0.28' 'perl-test-fatal' 'perl-test-simple' 'perl-extutils-makemaker' 'perl-module-build>=0.28' 'perl-test-pod') url='https://metacpan.org/release/HTML-Restrict' _distdir="HTML-Restrict-${pkgver}" source=("https://cpan.metacpan.org/authors/id/O/OA/OALDERS/${_distdir}.tar.gz") sha512sums=('6c34463ab2cd484c5b70e4f8be42511e7fbbb7bda535c6a87309f4e4778ffc99e91f989313b9c9c80752513e636d229a2a073a50696db60e85a2d24fcd4aa69d') build(){ cd "${srcdir}/${_distdir}" # Setting these env variables overwrites any command-line-options we don't want... export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \ MODULEBUILDRC=/dev/null # If using Makefile.PL if [ -r Makefile.PL ]; then perl Makefile.PL make # If using Build.PL elif [ -r Build.PL ]; then perl Build.PL perl Build fi } check(){ cd "${srcdir}/${_distdir}" # If using Makefile.PL if [ -r Makefile.PL ]; then make test # If using Build.PL elif [ -r Build.PL ]; then perl Build test fi } package(){ cd "${srcdir}/${_distdir}" # If using Makefile.PL if [ -r Makefile.PL ]; then make install # If using Build.PL elif [ -r Build.PL ]; then perl Build install fi # remove perllocal.pod and .packlist find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete }