db-move: moved webkit2gtk-4.1 from [testing] to [extra] (x86_64)
[arch-packages.git] / perl-anyevent / repos / extra-any / PKGBUILD
blob68428f46f4058d452b9e3426745b3d51bcd609fb
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-anyevent
4 pkgver=7.17
5 pkgrel=5
6 epoch=4
7 pkgdesc='The DBI of event loop programming'
8 arch=('any')
9 url="https://metacpan.org/release/AnyEvent"
10 license=('PerlArtistic' 'GPL')
11 depends=('perl')
12 checkdepends=('glib-perl' 'perl-async-interrupt' 'perl-ev' 'perl-net-ssleay')
13 optdepends=('perl-async-interrupt: for fast signal handling'
14             'perl-ev: for the recommended EV event loop backend'
15             'perl-guard: to speed up guards'
16             'perl-json: send or receive JSON with AnyEvent::Handle'
17             'perl-json-xs: send or receive JSON with AnyEvent::Handle'
18             'perl-net-ssleay: TLS/SSL connections with AnyEvent::Handle')
19 options=('!emptydirs')
20 source=("https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz")
21 sha512sums=('c553cce80fa14e2f91031c569d1c30acf470871ddd1c122fa3dd36cd1ba5b7002e7ba1dea4c950d889c7c661b81042dd97975e195a5325190ad644babff81e0a')
23 build() {
24   cd AnyEvent-$pkgver
25   PERL_CANARY_STABILITY_NOPROMPT=1 \
26   perl Makefile.PL INSTALLDIRS=vendor
27   make
30 check() {
31   cd AnyEvent-$pkgver
32   PERL_ANYEVENT_LOOP_TESTS=true make test
35 package() {
36   cd AnyEvent-$pkgver
37   make DESTDIR="$pkgdir" install