diff --git a/testing/perl-lingua-en-inflect-phrase/APKBUILD b/testing/perl-lingua-en-inflect-phrase/APKBUILD new file mode 100644 index 00000000000..3307cbec327 --- /dev/null +++ b/testing/perl-lingua-en-inflect-phrase/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Wen Heping +# Maintainer: Wen Heping +pkgname=perl-lingua-en-inflect-phrase +pkgver=0.20 +pkgrel=0 +# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Lingua-EN-Inflect-Phrase +pkgdesc="Inflect short English Phrases" +url="https://metacpan.org/release/Lingua-EN-Inflect-Phrase/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-lingua-en-findnumber perl-lingua-en-inflect perl-lingua-en-inflect-number + perl-lingua-en-number-isordinal perl-lingua-en-tagger + " +checkdepends="perl-test-nowarnings" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/R/RK/RKITOVER/Lingua-EN-Inflect-Phrase-$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=" +880e5e57580a0d178467700539f43029664a40a0b177a3b4fd8bd061db4082bc9618f15b26322ad1321d7fd21f09cb217a4f2bbf4badc72282d869a4e4ffcdc8 Lingua-EN-Inflect-Phrase-0.20.tar.gz +"