summaryrefslogtreecommitdiff
path: root/pcr/perl-tie-cycle/PKGBUILD
blob: c89e4f19319f9d8eaca0daebe449e44f9a262c65 (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
# Maintainer (Arch): Christoph Vigano  <mail@cvigano.de>
# Contributor      : Márcio Silva <coadde@parabola.nu>

_author=BDFOY
_perlmod=Tie-Cycle
pkgname=perl-tie-cycle
pkgver=1.21
pkgrel=1
pkgdesc="Cycle through a list of values via a scalar"
arch=('any')
url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/"
license=('GPL1')
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Tie-Cycle-$pkgver.tar.gz)
sha256sums=('1e94c98d7e6cbb1263d3defc9d0e9b6e6fc97dc8bb8acc29df82e8005a6d3564')

build() {
  cd "$srcdir/$_perlmod-$pkgver"

  # Install module in vendor directories.
  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

  /usr/bin/perl Makefile.PL &&
  make
}

package() {
  cd "$srcdir/$_perlmod-$pkgver"
  make install DESTDIR="$pkgdir"
}

# vim:set ts=2 sw=2 et: