1
0
Fork 0
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:
Wen Heping 2025-06-08 07:44:21 +00:00 committed by Celeste
parent 7a95312bad
commit 04b7125bde

View 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
"