1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +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 pkgname=perl-algorithm-diff-xs
_pkgreal=Algorithm-Diff-XS _pkgreal=Algorithm-Diff-XS
pkgver=0.04 pkgver=0.04
pkgrel=1 pkgrel=2
pkgdesc="Algorithm::Diff with XS core loop" pkgdesc="Algorithm::Diff with XS core loop"
url="https://metacpan.org/release/Algorithm-Diff-XS/" url="https://metacpan.org/release/Algorithm-Diff-XS/"
arch="all" arch="all"
license="GPL PerlArtistic" license="GPL-1.0-or-later Artistic-1.0-Perl"
cpandepends="perl-algorithm-diff" cpandepends="perl-algorithm-diff"
depends="$cpandepends" depends="$cpandepends"
makedepends="perl-dev" 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" builddir="$srcdir/$_pkgreal-$pkgver"
build() { build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make make
} }
check() { check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test make test
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }