aports/testing/perl-promise-xs/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

43 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-promise-xs
pkgver=0.20
pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Promise-XS
pkgdesc="Fast promises in Perl"
url="https://metacpan.org/release/Promise-XS/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev perl-extutils-makemaker-cpanfile"
checkdepends="
perl-anyevent perl-future-asyncawait perl-io-async perl-mojolicious
perl-test-deep perl-test-failwarnings perl-test2-suite
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FE/FELIPE/Promise-XS-$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
}
sha512sums="
0fab3c6382e009ba612fffe69c30931380d04af79ddb01eac8a42dd56a5145e25155e956706115f5e85a9b6cb9eab881d7310f5b9bb1f296f3bcfc173fe6f10a Promise-XS-0.20.tar.gz
"