mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-lingua-pt-stemmer: new aport
This commit is contained in:
parent
c5b2299328
commit
3a97622923
1 changed files with 37 additions and 0 deletions
37
testing/perl-lingua-pt-stemmer/APKBUILD
Normal file
37
testing/perl-lingua-pt-stemmer/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-lingua-pt-stemmer
|
||||||
|
pkgver=0.02
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Lingua-PT-Stemmer
|
||||||
|
pkgdesc="Portuguese language stemming"
|
||||||
|
url="https://metacpan.org/release/Lingua-PT-Stemmer/"
|
||||||
|
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/N/NE/NEILB/Lingua-PT-Stemmer-$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="
|
||||||
|
3537d947b9deeab15376502beb5540fe6afdabc1cd5fd18ec399d12f4dc715def15eb5c9cb052eb5be4b3c03731fd0f0d25ef84bec797f38c3e0f0785c4859b5 Lingua-PT-Stemmer-0.02.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue