blob: 1730d3f6b73526bf7356792f24fef5baaf18b9a4 (
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-list-someutils
_pkgreal=List-SomeUtils
pkgver=0.55
pkgrel=0
pkgdesc="Provide the stuff missing in List::Util"
url="http://search.cpan.org/dist/List-SomeUtils/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-module-implementation perl-list-someutils-xs"
cpanmakedepends=" perl-test-leaktrace "
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() {
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
}
sha512sums="e65f83fbfcbaf22abb72c0277f694c9818775cb20fe576c99c816a68ca617bde113b7334a095dd24e83c8db663f52a63ca4cad63396903a27cb1b6790a2bae24 List-SomeUtils-0.55.tar.gz"
|