mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-string-toidentifier-en: new aport
This commit is contained in:
parent
1569f2e414
commit
62d8cca801
1 changed files with 37 additions and 0 deletions
37
testing/perl-string-toidentifier-en/APKBUILD
Normal file
37
testing/perl-string-toidentifier-en/APKBUILD
Normal 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
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue