mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
testing/perl-lingua-stem-snowball-da: new aport
This commit is contained in:
parent
04b7125bde
commit
0109daa0d0
1 changed files with 37 additions and 0 deletions
37
testing/perl-lingua-stem-snowball-da/APKBUILD
Normal file
37
testing/perl-lingua-stem-snowball-da/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-lingua-stem-snowball-da
|
||||||
|
pkgver=1.01
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Lingua-Stem-Snowball-Da
|
||||||
|
pkgdesc="Porters stemming algorithm for Denmark"
|
||||||
|
url="https://metacpan.org/release/Lingua-Stem-Snowball-Da/"
|
||||||
|
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/C/CI/CINE/Lingua-Stem-Snowball-Da-$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="
|
||||||
|
dc0d199640417e6c9f0e6bfaa175ae64e288a4879047d4e13060eaadad20fa9590421535a6097aebb3ca1dcc4f2c9ce5a08a6566a0f651c59d57dca169ada7fe Lingua-Stem-Snowball-Da-1.01.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue