PKGBUILDs/extra/perl-anyevent/PKGBUILD
2019-02-26 13:58:59 +00:00

49 lines
1.6 KiB
Bash

# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to replace deprecated SSL_ST_OK state with TLS_ST_OK (1)
pkgname=perl-anyevent
pkgver=7.15
pkgrel=1
epoch=4
pkgdesc='The DBI of event loop programming'
arch=('any')
url="https://metacpan.org/release/AnyEvent"
license=('PerlArtistic' 'GPL')
depends=('perl')
checkdepends=('glib-perl' 'perl-async-interrupt' 'perl-ev' 'perl-net-ssleay')
optdepends=('perl-async-interrupt: for fast signal handling'
'perl-ev: for the recommended EV event loop backend'
'perl-guard: to speed up guards'
'perl-json: send or receive JSON with AnyEvent::Handle'
'perl-json-xs: send or receive JSON with AnyEvent::Handle'
'perl-net-ssleay: TLS/SSL connections with AnyEvent::Handle')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz"
openssl.patch)
sha512sums=('90ed9c89313e3ed07461e3426230083850a02ed1796b3c1eaaed1e7e6f77cb24609a36b6cdae7cd907c9867a2a347b8833f73c5718e52832bb57db7a356d3cd1'
'22d8d48e4f3f08888cccb43edcad8a0127f811ab524899cf1f97a0501a9e3a096f0870f680d94352dd47544c10f29963cb7484a2503b5af58302b217869e2128')
prepare() {
cd AnyEvent-$pkgver
patch -p1 -i ../openssl.patch
}
build() {
cd AnyEvent-$pkgver
PERL_CANARY_STABILITY_NOPROMPT=1 \
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd AnyEvent-$pkgver
PERL_ANYEVENT_LOOP_TESTS=true make test
}
package() {
cd AnyEvent-$pkgver
make DESTDIR="$pkgdir" install
}