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:
parent
561f8e0d41
commit
9e65f40302
1 changed files with 36 additions and 0 deletions
36
testing/perl-text-worddiff/APKBUILD
Normal file
36
testing/perl-text-worddiff/APKBUILD
Normal 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
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue