testing/perl-lingua-en-inflect: upgrade to 1.904

This commit is contained in:
Leo 2019-08-25 01:20:28 -03:00
parent 8c9e6cf3e3
commit 5995ffb9f7

View File

@ -3,46 +3,38 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-lingua-en-inflect
_pkgreal=Lingua-EN-Inflect
pkgver=1.903
pkgver=1.904
pkgrel=0
pkgdesc="Convert singular to plural. Select "a" or "an"."
url="http://search.cpan.org/dist/Lingua-EN-Inflect/"
url="https://metacpan.org/release/Lingua-EN-Inflect"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/$_pkgreal-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/Lingua-EN-Inflect-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="2f629e1dd9eddba123423c95531907a7c0a7eb0bc99ee425ea2c3cdb4059af0e78625c45392eb65780c8b06da8eec790e242d51912c87a15bcf5d466d68549ce Lingua-EN-Inflect-1.903.tar.gz"
sha512sums="242417424d8ab7d52d219af838df955add337c3ef97ceb27e0fd72151988e6cce44e504d5ebf7b0c15f32b496bc0179d6659845c258dd7cbfaa5ddbb0e7ec8a5 Lingua-EN-Inflect-1.904.tar.gz"