1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/perl-string-toidentifier-en/APKBUILD
2025-06-09 12:05:26 +00:00

37 lines
1.1 KiB
Text

# 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
"