mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
testing/perl-snowball-norwegian: new aport
This commit is contained in:
parent
7a95312bad
commit
04b7125bde
1 changed files with 36 additions and 0 deletions
36
testing/perl-snowball-norwegian/APKBUILD
Normal file
36
testing/perl-snowball-norwegian/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
|
||||||
|
pkgname=perl-snowball-norwegian
|
||||||
|
pkgver=1.2
|
||||||
|
pkgrel=0
|
||||||
|
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||||
|
_pkgreal=Snowball-Norwegian
|
||||||
|
pkgdesc="Porters stemming algorithm for Norwegian"
|
||||||
|
url="https://metacpan.org/release/Snowball-Norwegian/"
|
||||||
|
arch="noarch"
|
||||||
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||||
|
depends="perl"
|
||||||
|
makedepends="perl-module-build"
|
||||||
|
subpackages="$pkgname-doc"
|
||||||
|
source="https://cpan.metacpan.org/authors/id/A/AS/ASKSH/Snowball-Norwegian-$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||||
|
perl Build.PL \
|
||||||
|
--installdirs=vendor \
|
||||||
|
--create_packlist=0
|
||||||
|
./Build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
./Build test
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
./Build install --destdir="$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
a14da012954076c6c3fdaa4ea12dd74d8e07e96e061e368980781c965e72fe9f8ac4b9bc8eb761e232bf8c244edc816f6c991bb2cd02020919fe957cefe034d5 Snowball-Norwegian-1.2.tar.gz
|
||||||
|
"
|
Loading…
Add table
Add a link
Reference in a new issue