PKGBUILDs/extra/perl-anyevent/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2017-04-28 01:18:47 +00:00
# $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
2017-06-24 15:18:22 +00:00
pkgver=7.14
2017-09-02 12:56:00 +00:00
pkgrel=3
2017-04-28 01:18:47 +00:00
epoch=4
pkgdesc='The DBI of event loop programming'
arch=('any')
url="https://metacpan.org/release/AnyEvent"
license=('PerlArtistic' 'GPL')
depends=('perl')
2017-05-24 12:37:30 +00:00
checkdepends=('glib-perl' 'perl-async-interrupt' 'perl-ev' 'perl-net-ssleay')
2017-04-28 01:18:47 +00:00
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"
2017-05-24 12:37:30 +00:00
openssl.patch)
2017-06-24 15:18:22 +00:00
sha512sums=('98e7b9e06cf74b99d3407a25b60f3b825fceed3bae43505e1fb90785e24bd88ae25955cff25d29b4cc96957db7f4f5203d19ad2365abb4e3a3227fd91a16fb25'
'a5fb03d07f7ba467a51b802e1d43bf996a99338d0c016c58dc9829600316ad6ad096760455c589b3a6d9cec8a5806f1469fad8aab8c46eee7f5a62f4fe7bc730')
2017-04-28 01:18:47 +00:00
prepare() {
cd AnyEvent-$pkgver
patch -p1 -i ../openssl.patch
}
build() {
cd AnyEvent-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd AnyEvent-$pkgver
2017-05-24 12:37:30 +00:00
PERL_ANYEVENT_LOOP_TESTS=true make test
2017-04-28 01:18:47 +00:00
}
package() {
cd AnyEvent-$pkgver
make DESTDIR="$pkgdir" install
}