projects/aports·blob master · refs

37 lines · 1.0 KiB

1# Contributor: Wen Heping <[email protected]>
2# Maintainer: Wen Heping <[email protected]>
3pkgname=perl-array-diff
4pkgver=0.09
5pkgrel=0
6# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
7_pkgreal=Array-Diff
8pkgdesc="Find the differences between two arrays"
9url="https://metacpan.org/release/Array-Diff/"
10arch="noarch"
11license="GPL-1.0-or-later OR Artistic-1.0-Perl"
12depends="perl perl-algorithm-diff perl-class-accessor"
13subpackages="$pkgname-doc"
14source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Array-Diff-$pkgver.tar.gz"
15builddir="$srcdir/$_pkgreal-$pkgver"
16
17build() {
18 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
19 PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
20 INSTALLDIRS=vendor \
21 NO_PACKLIST=1 \
22 NO_PERLLOCAL=1
23 make
24}
25
26check() {
27 export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
28 make test
29}
30
31package() {
32 make DESTDIR="$pkgdir" install
33}
34
35sha512sums="
36acfa2e47f39f2af5a04b59c3c708349e603295cf12c699ecbd9184c975e2cdb5edacbafc15c61c976c73ce459e3d2d5ea99fc50c2e4e2e56132dd1c3794e5e6c Array-Diff-0.09.tar.gz
37"