aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scalar-list-utils/APKBUILD
blob: 8623b3f868fb471d38d52a07f3403b450572d2e7 (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
# 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.46
pkgrel=0
pkgdesc="Common Scalar and List utility subroutines"
url="http://search.cpan.org/dist/Scalar-List-Utils/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

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

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

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

md5sums="91b581cec3dd3de016bca7bbb106063b  Scalar-List-Utils-1.46.tar.gz"
sha256sums="30662b1261364adb317e9a5bd686273d3dd731e3fda1b8e894802aa52e0052e7  Scalar-List-Utils-1.46.tar.gz"
sha512sums="355e83d4127b372057143b9498863b075155e7bae8abaa9f5f3f9fbd56cd37b9c6dc58cd20249f22c8bff926d28a3be1e0b03760cc7c89ce358cb135a6c3369f  Scalar-List-Utils-1.46.tar.gz"