PKGBUILDs/extra/perl-anyevent/PKGBUILD

29 lines
931 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Tobias Kieslich <tobias@justdreams.de>
# Contributor: François Charette <francois.archlinux.org>
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
}