aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scalar-list-utils/APKBUILD
blob: d1340667a28bf29b378bc7c1c9b93f6def872d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-scalar-list-utils
_pkgreal=Scalar-List-Utils
pkgver=1.63
pkgrel=0
pkgdesc="Common Scalar and List utility subroutines"
url="https://metacpan.org/release/Scalar-List-Utils"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="
e9e44a62181153c5e28a39df56ec14e9ed2918c6b398dd8e3d9f79669969828f6c0e5efdd02970abaf71ae258b291ad434dc4c597cf6ba4fba55cda892ac8de8  Scalar-List-Utils-1.63.tar.gz
"