diff options
author | Piotr Rogoża | 2018-09-05 22:24:08 +0200 |
---|---|---|
committer | Piotr Rogoża | 2018-09-05 22:24:08 +0200 |
commit | 056092a7092cc147d7716bbb1f39877576c704de (patch) | |
tree | ec492f3452324ab8cb6e873732eaa1a724192275 /PKGBUILD | |
parent | ee812d4e6879530d52dea7217520758738a436f6 (diff) | |
download | aur-056092a7092cc147d7716bbb1f39877576c704de.tar.gz |
Upgraded to 0.003
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 53 |
1 files changed, 17 insertions, 36 deletions
@@ -1,9 +1,7 @@ -# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab -# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com> -# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com> +# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com> pkgname=perl-io-prompt-tiny -pkgver=0.002 +pkgver=0.003 pkgrel=1 _author="D/DA/DAGOLDEN" _perlmod="IO-Prompt-Tiny" @@ -19,50 +17,33 @@ perl-capture-tiny ) options=(!emptydirs) source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz") +sha256sums=('00cc5a454f733367403dcdbba21966047f920c5abc5f03e6847d2f53e0c57996') +unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT +export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null build(){ cd "$srcdir"/$_perlmod-$pkgver - - # 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 - /usr/bin/perl Makefile.PL + if [ -f Makefile.PL ]; then + perl Makefile.PL make - # If using Build.PL - elif [ -r Build.PL ]; then - /usr/bin/perl Build.PL - perl Build + else + perl Build.PL + ./Build fi } check(){ cd "$srcdir"/$_perlmod-$pkgver - - # If using Makefile.PL - if [ -r Makefile.PL ]; then + if [ -f Makefile.PL ]; then make test - # If using Build.PL - elif [ -r Build.PL ]; then - perl Build test + else + ./Build test fi } package(){ cd "$srcdir"/$_perlmod-$pkgver - - # If using Makefile.PL - if [ -r Makefile.PL ]; then - make install - # If using Build.PL - elif [ -r Build.PL ]; then - perl Build install + if [ -f Makefile.PL ]; then + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + else + ./Build install --installdirs=vendor --destdir="$pkgdir" fi - - # remove perllocal.pod and .packlist - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } - -md5sums=('1061da5fdc18084d1cf3c4c9a8fe2f88') |