# Maintainer: Erich Eckner # Generator : neuesPerlPaket (d004a3633c882df1d7fb921ddb8a08ccdbd8fcf488cb3ecaea07299ac8d285c0e7e482a1e5d5923dc1b34380f98caa27bc9cee8f2e1718aea9e36c454af84e08) pkgname='perl-term-size-perl' pkgver=0.0201 pkgrel='4' pkgdesc='Perl extension for retrieving terminal size (Perl version)' arch=('x86_64' 'i686') license=('PerlArtistic' 'GPL') options=('!emptydirs') depends=( 'perl-exporter' 'perl-extutils-cbuilder' 'perl-test-simple') url='https://metacpan.org/release/Term-Size-Perl' _distdir="Term-Size-Perl-${pkgver}" source=("https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/${_distdir}.tar.gz") sha512sums=('ecb2529ad404c0d3b3874b1c5a63d2252622ce6f05e0a1c1461e8456b05f1bf51dd4af52391e999e629d0f8ce920489ddd46a0367005cae4b479bd243c1818d0') 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 }