mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-lingua-en-inflect-number: new aport
This commit is contained in:
parent
20de276989
commit
c9a340b7fc
1 changed files with 37 additions and 0 deletions
37
testing/perl-lingua-en-inflect-number/APKBUILD
Normal file
37
testing/perl-lingua-en-inflect-number/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-lingua-en-inflect-number
|
||||||
|
pkgver=1.12
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Lingua-EN-Inflect-Number
|
||||||
|
pkgdesc="Force number of words to singular or plural"
|
||||||
|
url="https://metacpan.org/release/Lingua-EN-Inflect-Number/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl perl-lingua-en-inflect"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Lingua-EN-Inflect-Number-$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="
|
||||||
|
302c2f891984a7a0b10caa101d06524edc5343a5226ccd32952076e765d434d0ba26ced32d000f85ef01b3cff4510c1456003e222df59a084932e6934947ee08 Lingua-EN-Inflect-Number-1.12.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue