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-tagger: new aport

This commit is contained in:
Wen Heping 2025-06-08 12:31:10 +00:00
parent a09be65b63
commit bcccebcb47

View file

@ -0,0 +1,37 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-lingua-en-tagger
pkgver=0.31
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Lingua-EN-Tagger
pkgdesc="Part-of-speech tagger for English natural language processing"
url="https://metacpan.org/release/Lingua-EN-Tagger/"
arch="noarch"
license="GPL-3.0-only"
depends="perl perl-html-parser perl-html-tagset perl-lingua-stem perl-memoize-expirelru"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AC/ACOBURN/Lingua-EN-Tagger-$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="
396b96d9160185bf557b6caa3985153cea18fb05c82d295c7915424305b6ebe9a1a02091b9d32db3b83104d571e8eb8a31a58d35ea3ee960937230ac2b416e0d Lingua-EN-Tagger-0.31.tar.gz
"