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:
parent
aea5363c49
commit
b1b47d31de
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue