# Contributor: Tim Yang # Contributor: François Charette pkgname=perl-class-accessor pkgver=0.34 pkgrel=1 pkgdesc="Automated accessor generation" arch=(any) url="http://search.cpan.org/dist/Class-Accessor/" license=('GPL' 'PerlArtistic') depends=('perl>=5.10.0') options=('!emptydirs') source=(http://www.cpan.org/authors/id/K/KA/KASEI/Class-Accessor-$pkgver.tar.gz) md5sums=('0d9640d237a13276145f7e44b4855b89') build() { cd "$srcdir/Class-Accessor-$pkgver" eval `perl -V:archname` perl Makefile.PL \ INSTALLARCHLIB=/usr/lib/perl5/current/$archname \ INSTALLSITELIB=/usr/lib/perl5/site_perl/current \ INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/$archname || return 1 make || return 1 make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name '.packlist' -o -name '*.pod' \) -delete }