# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
setvar pkgname = 'perl-set-intspan-fast'
setvar _pkgreal = 'Set-IntSpan-Fast'
setvar pkgver = '1.15'
setvar pkgrel = '0'
setvar pkgdesc = ""Fast handling of sets containing integer spans.""
setvar url = ""http://search.cpan.org/dist/Set-IntSpan-Fast/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-data-types""
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/$_pkgreal-$pkgver.tar.gz""

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

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

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

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

setvar md5sums = ""d75b52c20f3a365f137b4e0f6e25f888  Set-IntSpan-Fast-1.15.tar.gz""