1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 11:19:50 +03:00
aports/testing/perl-net-async-irc/APKBUILD
2023-11-07 12:24:29 +00:00

44 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-net-async-irc
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Async-IRC
pkgver=0.12
pkgrel=0
pkgdesc="Use IRC with IO::Async"
url="https://metacpan.org/release/Net-Async-IRC/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-future-asyncawait perl-io-async perl-protocol-irc"
makedepends="perl-module-build"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Net-Async-IRC-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
15e69d9cec3d30cf98901af75ff722654677157fa63a45d3f6cedecfd8da7dd10b44d696c6d473d9b713868ca4cb58b8f2b2c03be0c580e3148df165d444ada2 Net-Async-IRC-0.12.tar.gz
"