diff options
author | Erich Eckner <git@eckner.net> | 2016-04-29 14:49:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-29 14:49:46 +0200 |
commit | 9d9b5aced7c4340b672e8d1bac001fc6e58da7dd (patch) | |
tree | 11df7ab379e59b9a94b06168ef005c7beafbce5e /perl-term-size-perl/PKGBUILD | |
parent | 6744b650fe5223516b1fd13f6bfece49ba0ee9a6 (diff) | |
download | archlinuxewe.git.save-9d9b5aced7c4340b672e8d1bac001fc6e58da7dd.tar.xz |
perl-term-size-perl neu
Diffstat (limited to 'perl-term-size-perl/PKGBUILD')
-rw-r--r-- | perl-term-size-perl/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/perl-term-size-perl/PKGBUILD b/perl-term-size-perl/PKGBUILD new file mode 100644 index 00000000..eda10e9f --- /dev/null +++ b/perl-term-size-perl/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (d004a3633c882df1d7fb921ddb8a08ccdbd8fcf488cb3ecaea07299ac8d285c0e7e482a1e5d5923dc1b34380f98caa27bc9cee8f2e1718aea9e36c454af84e08) + +pkgname='perl-term-size-perl' +pkgver='0.029' +pkgrel='1' +pkgdesc='Perl extension for retrieving terminal size (Perl version)' +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +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=('0f1b3ad458adb46d1107b053e078d55d2e3ecf6d582b685e75ef792073d807ac79d71f91160a83c8d4fc53b01275656c571df61008f58252fb743f9220ec16a5') + +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 +} |