aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scalar-list-utils/APKBUILD
blob: 890a1e94fc38fb62fb6c924a5641da4034d43337 (plain) (blame)
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
# 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.55
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="618923b4040657dd895fc8e0043ee17e355be07923a79a3b2c74c254f44ee2d81a7ef7da3645bdd9f2e436d3f87ca51d20b10ee76da0d3026129dbdbdac5ae27  Scalar-List-Utils-1.55.tar.gz"