PKGBUILDs/extra/perl-anyevent/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2017-04-28 01:18:47 +00:00
# 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
2019-09-19 12:36:50 +00:00
pkgver=7.17
2024-07-13 03:50:32 +00:00
pkgrel=7
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')
2019-09-19 12:36:50 +00:00
source=("https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz"
2017-05-24 12:37:30 +00:00
openssl.patch)
2019-09-19 12:36:50 +00:00
sha512sums=('c553cce80fa14e2f91031c569d1c30acf470871ddd1c122fa3dd36cd1ba5b7002e7ba1dea4c950d889c7c661b81042dd97975e195a5325190ad644babff81e0a'
2019-02-26 13:58:59 +00:00
'22d8d48e4f3f08888cccb43edcad8a0127f811ab524899cf1f97a0501a9e3a096f0870f680d94352dd47544c10f29963cb7484a2503b5af58302b217869e2128')
2017-04-28 01:18:47 +00:00
prepare() {
cd AnyEvent-$pkgver
patch -p1 -i ../openssl.patch
}
build() {
cd AnyEvent-$pkgver
2018-08-06 12:51:30 +00:00
PERL_CANARY_STABILITY_NOPROMPT=1 \
2017-04-28 01:18:47 +00:00
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
}