summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a3c9b0022e09cfd079a891574049cb9fe267f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: xRemaLx <anton.komolov@gmail.com>
# Contributor: xRemaLx <anton.komolov@gmail.com>

pkgname='perl-stream-buffered'
pkgver='0.03'
pkgrel='1'
pkgdesc="temporary buffer to save bytes"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.8.1' 'perl-io>=1.14')
makedepends=('perl-extutils-makemaker>=6.59')
url='http://search.cpan.org/dist/Stream-Buffered'
source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Stream-Buffered-${pkgver}.tar.gz")
sha512sums=('cbc418846f61fd46163f85d2ce53c3d08ebc164a4e775b7e9fee4dc143daa3655983723099d1ded53f0054506c550038680d1f95e11d1399fef6ff6b38f9712e')

build() {
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
      PERL_AUTOINSTALL=--skipdeps                            \
      PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
      PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
      MODULEBUILDRC=/dev/null

    cd "${srcdir}/Stream-Buffered-${pkgver}"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "${srcdir}/Stream-Buffered-${pkgver}"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "${srcdir}/Stream-Buffered-${pkgver}"
  make install

  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: