aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-list-allutils/APKBUILD
blob: 6f85df7773fd40b36de736a4646e395f948c7cd5 (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-list-allutils
_pkgreal=List-AllUtils
pkgver=0.09
pkgrel=0
pkgdesc="Combines List::Util and List::MoreUtils in one bite-sized package"
url="http://search.cpan.org/dist/List-AllUtils/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-list-moreutils"
cpanmakedepends="  perl-test-warnings "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	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="3e2dfeeef80c4e1952443c6b7d48583c  List-AllUtils-0.09.tar.gz"
sha256sums="4cfe6359cc6c9f4ba0d178e223f4b468d3cf7768d645334962f05de069bdaee2  List-AllUtils-0.09.tar.gz"
sha512sums="a611536880abfeb3aadfab629a98115905f447ddb74f0e9cce9d3534366978e43a8bf566a742d352e5ac263d8bd4c32c96dd4f308fd36ebd7003eb0001f96727  List-AllUtils-0.09.tar.gz"