1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/perl-text-worddiff: new aport

This commit is contained in:
Wen Heping 2025-06-09 13:32:11 +00:00 committed by Celeste
parent 561f8e0d41
commit 9e65f40302

View file

@ -0,0 +1,36 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-text-worddiff
pkgver=0.09
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Text-WordDiff
pkgdesc="Track changes between documents"
url="https://metacpan.org/release/Text-WordDiff/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-algorithm-diff perl-html-parser"
makedepends="perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMK/Text-WordDiff-$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="
4a3182a4b2ca8f904e88e59a6df3fb43607571af6c248b7c1063d1602e0ba93dd1baba0338ef1a1ba7aefcb9808e4c358880ac3f7fedd711e9001b6c9aa8341e Text-WordDiff-0.09.tar.gz
"