summaryrefslogtreecommitdiff
path: root/extra/perl-ev/PKGBUILD
blob: 1f6075bdeccd7cb62a8c412689cf2b5e577db0a2 (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
# $Id: PKGBUILD 186404 2013-05-26 09:25:10Z bluewind $

pkgname=perl-ev
pkgver=4.15
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=('546d10fb5901f2af937e53b41a92b2bb')

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"
}