1
0
Fork 0
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:
Timothy Legge 2019-05-26 21:43:52 +00:00 committed by TBK
parent aea5363c49
commit b1b47d31de
No known key found for this signature in database
GPG key ID: 5FFB25718720C7D7

View file

@ -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
}