# $Id: PKGBUILD 52082 2009-09-15 21:39:29Z francois $ # Maintainer: tobias # Contributor: Tobias Kieslich # Contributor: François Charette pkgname=perl-anyevent _cpanname=AnyEvent pkgver=5.12 pkgrel=1 pkgdesc="Perl/CPAN AnyEvent module - Framework for multiple event loops" license=('PerlArtistic' 'GPL') arch=(any) url="http://search.cpan.org/dist/${_cpanname}/" depends=('perl-event' 'glib-perl' 'perl>=5.10.0') options=(force !emptydirs) source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/${_cpanname}-${pkgver}.tar.gz) md5sums=('b0477d63f9270a7fcfde46842cf51def') build() { cd ${srcdir}/${_cpanname}-${pkgver} # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 make install DESTDIR=${pkgdir} || return 1 # remove perllocal.pod and .packlist find ${pkgdir} -name perllocal.pod -delete find ${pkgdir} -name .packlist -delete }