mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 17:55:15 +03:00
testing/perl-algorithm-diff-xs: modernize, fix license
Closes: GH-8170
This commit is contained in:
parent
aea5363c49
commit
b1b47d31de
1 changed files with 2 additions and 5 deletions
|
@ -4,11 +4,11 @@
|
|||
pkgname=perl-algorithm-diff-xs
|
||||
_pkgreal=Algorithm-Diff-XS
|
||||
pkgver=0.04
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Algorithm::Diff with XS core loop"
|
||||
url="https://metacpan.org/release/Algorithm-Diff-XS/"
|
||||
arch="all"
|
||||
license="GPL PerlArtistic"
|
||||
license="GPL-1.0-or-later Artistic-1.0-Perl"
|
||||
cpandepends="perl-algorithm-diff"
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev"
|
||||
|
@ -17,20 +17,17 @@ source="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Algorithm-Diff-XS-$pkg
|
|||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue