updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-data-alias / PKGBUILD
blob0926d0fb9cd6178f45eae36978e9b3e5abd5249b
1 # vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
2 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
3 # Created: 04/12/2011
5 _author=Z/ZE/ZEFRAM
6 _perlmod=Data-Alias
7 pkgname=perl-data-alias
8 pkgver=1.16
9 pkgrel=1
10 pkgdesc='Data::Alias - Comprehensive set of aliasing operations'
11 arch=('any')
12 url="http://search.cpan.org/~zefram/Data-Alias/"
13 license=('GPL' 'PerlArtistic')
14 groups=()
15 depends=('perl')
16 makedepends=('perl')
17 optdepends=()
18 provides=()
19 conflicts=()
20 replaces=()
21 backup=()
22 options=(!emptydirs)
23 install=
24 source=("http://cpan.perl.org/modules/by-authors/id/$_author/$_perlmod-$pkgver.tar.gz")
25 noextract=()
27 build(){
28   cd "$srcdir/$_perlmod-$pkgver"
30   # Install module in vendor directories.
31   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
32   make
34 check(){
35   cd "$srcdir/$_perlmod-$pkgver"
36   make test
38 package(){
39   cd "$srcdir/$_perlmod-$pkgver"
40   make install DESTDIR="$pkgdir/"
42   # remove perllocal.pod and .packlist
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 md5sums=('f53a4f654d57671fe0bd2cdcd6974e41')