aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scalar-list-utils/APKBUILD
blob: 2beac222d46e3459f7ba62227410633f646a6c88 (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
# 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.54
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() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

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

sha512sums="da85b7532e6f54433c328e82411715e0f90281779fc2bfd921c3ed49f853667650c029d2be6cf3a41e2ac9060c0a444245d579030a8054a1f1003d45a9c6eb0e  Scalar-List-Utils-1.54.tar.gz"