1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/perl-lingua-en-inflect-phrase: new aport

This commit is contained in:
Wen Heping 2025-06-09 11:31:09 +00:00 committed by Celeste
parent 9809b5cbe4
commit 1569f2e414

View file

@ -0,0 +1,41 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
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
"