archrelease: copy trunk to staging-x86_64
[arch-packages.git] / perl-tie-cycle / trunk / PKGBUILD
blob88766a47f73a64b24185c384ba065ca89f70851a
1 # $ID$
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=perl-tie-cycle
5 _dist=Tie-Cycle
6 pkgver=1.225
7 pkgrel=7
8 pkgdesc="Cycle through a list of values via a scalar"
9 arch=('any')
10 url="https://metacpan.org/release/${_dist}"
11 license=('PerlArtistic' 'GPL')
12 depends=('perl')
13 checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
14 options=('!emptydirs')
15 source=(https://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/${_dist}-${pkgver}.tar.gz)
16 md5sums=('260fd7edbfefd14b40d27234cd59b6ee')
17 sha256sums=('f330d821694af9b269b6083570d5c10ea22e6eb3b21841048ce28252b1c03d45')
19 build() {
20     cd "${srcdir}/${_dist}-${pkgver}"
21     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
22     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
23     perl Makefile.PL
24     make
27 check() {
28     cd "${srcdir}/${_dist}-${pkgver}"
29     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
30     export PERL_MM_USE_DEFAULT=1
31     make test
34 package() {
35     cd "${srcdir}/${_dist}-${pkgver}"
36     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
37     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"