PKGBUILDs/community/perl-class-autouse/PKGBUILD
2009-10-09 21:15:33 -05:00

25 lines
896 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>
pkgname=perl-class-autouse
pkgver=1.29
pkgrel=2
pkgdesc="Run-time load a class the first time you call a method in it. "
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Class-Autouse"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/Class-Autouse-$pkgver.tar.gz)
md5sums=('da37cc729e01a504b93bc8bdc548d9a9')
build() {
cd $startdir/src/Class-Autouse-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make pure_install doc_install DESTDIR=$startdir/pkg || return 1
find $startdir/pkg -name '.packlist' -delete
find $startdir/pkg -name '*.pod' -delete
}