mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-lingua-en-number-isordinal: new aport
This commit is contained in:
parent
c9a340b7fc
commit
4089be2b49
1 changed files with 38 additions and 0 deletions
38
testing/perl-lingua-en-number-isordinal/APKBUILD
Normal file
38
testing/perl-lingua-en-number-isordinal/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||
pkgname=perl-lingua-en-number-isordinal
|
||||
pkgver=0.05
|
||||
pkgrel=0
|
||||
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=Lingua-EN-Number-IsOrdinal
|
||||
pkgdesc="detect if English number is ordinal or cardinal"
|
||||
url="https://metacpan.org/release/Lingua-EN-Number-IsOrdinal/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl perl-lingua-en-findnumber"
|
||||
checkdepends="perl-test-fatal perl-try-tiny"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/R/RK/RKITOVER/Lingua-EN-Number-IsOrdinal-$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="
|
||||
45edc8343a89cd87a8d707ad6b406ed89708b88d7edc3edfdd1eb63e43520206e7accac6768e18d2db7bb81db3185fd2fb7537289f4bb29131e5e8ce774f70d1 Lingua-EN-Number-IsOrdinal-0.05.tar.gz
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue