summaryrefslogtreecommitdiff
path: root/extra/perl-ev/PKGBUILD
blob: cda99117f38b178577824f6426f460aea8692c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 214221 2014-06-04 13:51:34Z bluewind $
# Maintainer: Felix Yan <felixonmars@gmail.com>

pkgname=perl-ev
pkgver=4.17
pkgrel=2
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=('ffc39299fab4589bb850b5a46ccd2395')

build() {
  cd EV-$pkgver
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  unset PERL5LIB PERL_MM_OPT
  perl Makefile.PL
  make
}

check() {
  cd EV-$pkgver
  export PERL_MM_USE_DEFAULT=1
  unset PERL5LIB
  make test
}

package() {
  cd EV-$pkgver
  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}