diff options
author | Erich Eckner <git@eckner.net> | 2016-05-20 16:56:33 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-20 16:56:33 +0200 |
commit | 7bf35d6291573d59dbfef5e15a2799fdd3dc52c1 (patch) | |
tree | 2781adca3b4b7f5671b277aa3b09fb0e94a00606 /perl-stream-buffered | |
parent | be0cb8fa3ac01a736ca599c8b3c52bfef6b68b05 (diff) | |
download | archlinuxewe-7bf35d6291573d59dbfef5e15a2799fdd3dc52c1.tar.xz |
perl-stream-buffered neu
Diffstat (limited to 'perl-stream-buffered')
-rw-r--r-- | perl-stream-buffered/PKGBUILD | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/perl-stream-buffered/PKGBUILD b/perl-stream-buffered/PKGBUILD new file mode 100644 index 000000000..3b262f4b0 --- /dev/null +++ b/perl-stream-buffered/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Generator : neuesPerlPaket (900e236c34f5f70361b2c0eed5444de99193a45a6e5d0c97dc30ac9769d87f1aa77dfcc5a79ef0dea0df9d666b25059c0bc95a7ce51f80bc58ce97da48008bc9) + +pkgname='perl-stream-buffered' +pkgver='0.03' +pkgrel='1' +pkgdesc='temporary buffer to save bytes' +arch=('x86_64' 'i686') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=( + 'perl-io>=1.14' + 'perl>=5.8.1') +makedepends=( + 'perl-extutils-makemaker>=6.30') +url='https://metacpan.org/release/Stream-Buffered' +_distdir="Stream-Buffered-${pkgver}" +source=("https://cpan.metacpan.org/authors/id/D/DO/DOY/${_distdir}.tar.gz") +sha512sums=('cbc418846f61fd46163f85d2ce53c3d08ebc164a4e775b7e9fee4dc143daa3655983723099d1ded53f0054506c550038680d1f95e11d1399fef6ff6b38f9712e') + +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 +} |