mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-lingua-en-words2nums: new aport
This commit is contained in:
parent
f689a1b128
commit
ee05aab66a
1 changed files with 37 additions and 0 deletions
37
testing/perl-lingua-en-words2nums/APKBUILD
Normal file
37
testing/perl-lingua-en-words2nums/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||
pkgname=perl-lingua-en-words2nums
|
||||
pkgver=0.18
|
||||
pkgrel=0
|
||||
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Lingua-EN-Words2Nums
|
||||
pkgdesc="convert English text to numbers"
|
||||
url="https://metacpan.org/release/Lingua-EN-Words2Nums/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/J/JO/JOEY/Lingua-EN-Words2Nums-$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="
|
||||
c26cc004f4df5d7a2b17e240c9e08dcc45f9da02d7c8488da98757ce38d29e78022c09b8f5ecb8b93219b9b36d13de0af965e86c0559a3d4dc5ad268dcaa2e76 Lingua-EN-Words2Nums-0.18.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue