summaryrefslogtreecommitdiff
path: root/user/perl-anyevent
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-anyevent')
-rw-r--r--user/perl-anyevent/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-anyevent/APKBUILD b/user/perl-anyevent/APKBUILD
new file mode 100644
index 000000000..f97e983eb
--- /dev/null
+++ b/user/perl-anyevent/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-anyevent
+pkgver=7.14
+pkgrel=0
+pkgdesc="The DBI of event loop programming"
+url="https://metacpan.org/pod/AnyEvent"
+arch="noarch"
+license="Artistic-1.0-Perl AND GPL-2.0"
+depends="perl"
+makedepends="perl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-$pkgver.tar.gz"
+builddir="$srcdir/AnyEvent-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="98e7b9e06cf74b99d3407a25b60f3b825fceed3bae43505e1fb90785e24bd88ae25955cff25d29b4cc96957db7f4f5203d19ad2365abb4e3a3227fd91a16fb25 AnyEvent-7.14.tar.gz"