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

testing/perl-string-toidentifier-en: new aport

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

View file

@ -0,0 +1,37 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-string-toidentifier-en
pkgver=0.12
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=String-ToIdentifier-EN
pkgdesc="Convert Strings to English Program Identifiers"
url="https://metacpan.org/release/String-ToIdentifier-EN/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-lingua-en-inflect-phrase perl-text-unidecode perl-namespace-clean"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RK/RKITOVER/String-ToIdentifier-EN-$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="
1fac41b16d284dacb81412d6f22171d795272f53d18bfe3b048af9bcc11b6844515fb27a389abfabcd18ffd3e6c5cf6905d5e2440a6cd38ef0ea8eda549a43c4 String-ToIdentifier-EN-0.12.tar.gz
"