aports/testing/perl-adapter-async/APKBUILD
Celeste 40ea6c48d7 */*: add maintainer variable for aports i maintain
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment

since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
2024-10-16 16:20:45 +00:00

50 lines
1.4 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-adapter-async
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Adapter-Async
pkgver=0.019
pkgrel=0
pkgdesc="Common API for linking data sources and views"
url="https://metacpan.org/release/Adapter-Async/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
perl perl-check-unitcheck perl-curry perl-future
perl-list-binarysearch perl-log-any
perl-mixin-event-dispatch perl-variable-disposition
"
checkdepends="perl-test-checkdeps perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TE/TEAM/Adapter-Async-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
5e002bc73943ddaa1b964a2dcd8c15db367c0acba60b87d22db2c7df7bda017dcd61bbaac6b6c63fe9ebe804ab3116a5475b0c5c791aa1000389894958777a0d Adapter-Async-0.019.tar.gz
"