summaryrefslogtreecommitdiff
path: root/extra/perl-ev
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-08 23:14:45 +0000
committerroot <root@rshg054.dnsready.net>2012-01-08 23:14:45 +0000
commit46783b68621b6ad45cdd9ed64cfa8cdcfbc6f318 (patch)
treeeb2bd0aa427b4ad1659249fa8b86467dcd68e0dc /extra/perl-ev
parent6aeb515f4afd10afb53b21df18d03b0d5f3a200f (diff)
Sun Jan 8 23:14:45 UTC 2012
Diffstat (limited to 'extra/perl-ev')
-rw-r--r--extra/perl-ev/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/extra/perl-ev/PKGBUILD b/extra/perl-ev/PKGBUILD
new file mode 100644
index 000000000..29cf92abd
--- /dev/null
+++ b/extra/perl-ev/PKGBUILD
@@ -0,0 +1,48 @@
+# Packager: Justin Davis <jrcd83@gmail.com>
+# $Id: PKGBUILD 146268 2012-01-07 18:43:52Z juster $
+
+pkgname=perl-ev
+pkgver=4.03
+pkgrel=1
+pkgdesc="perl interface to libev, a high performance full-featured event loop"
+arch=(i686 x86_64)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl-common-sense')
+url=https://metacpan.org/release/EV
+source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/EV-${pkgver}.tar.gz")
+md5sums=(33088705bc34bf66bccde50205c15e9f)
+sha512sums=(fecf2014e89c37ca90d61e432d4020b4c59af3877e1c423693f4a86ed0c66325053737ad1c4e20c2c85b1ca65717c811f54fc596da32a853ad142bd7f60c8e03)
+_distdir="${srcdir}/EV-${pkgver}"
+
+build() {
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ cd "$_distdir"
+ make test
+ )
+}
+
+package() {
+ cd "$_distdir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: