aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-list-moreutils-xs/APKBUILD
blob: 44f9c267cc89c2939e9a7d49102c1edd26be2e16 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                           
            
        


                                                       
                    



































                                                                                     
                                                                                                                                                                             
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-list-moreutils-xs
_pkgreal=List-MoreUtils-XS
pkgver=0.428
pkgrel=2
pkgdesc="Provide the stuff missing in List::Util in XS"
url="http://search.cpan.org/dist/List-MoreUtils-XS/"
arch="all"
license="Apache-2.0"
cpandepends=""
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

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

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

sha512sums="a608568e3c4a2e160e4f9afa26640be5b97ec83e301a6b81849e37951698b9423c0a969d7e8797a49b4fb6c5123780630a3726c64713922b90b21b947682c3dd  List-MoreUtils-XS-0.428.tar.gz"