diff options
Diffstat (limited to 'main/perl-set-intspan/APKBUILD')
-rw-r--r-- | main/perl-set-intspan/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-set-intspan/APKBUILD b/main/perl-set-intspan/APKBUILD new file mode 100644 index 0000000000..03692a5fa7 --- /dev/null +++ b/main/perl-set-intspan/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-set-intspan +_pkgreal=Set-IntSpan +pkgver=1.19 +pkgrel=0 +pkgdesc="Manages sets of integers, newsrc style" +url="http://search.cpan.org/dist/Set-IntSpan/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/S/SW/SWMCD/$_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="7c21c2fedce5b7be7d8200e2cf2bdca1 Set-IntSpan-1.19.tar.gz" +sha256sums="11b7549b13ec5d87cc695dd4c777cd02983dd5fe9866012877fb530f48b3dfd0 Set-IntSpan-1.19.tar.gz" +sha512sums="de743bc26e4e9daf0bff636279219776421a31d1b3fa5d8e9232e051f2396cbfdd339dacd4aadc006cf31527935550c8659d8c80cbaed5942895239ab36c9cd9 Set-IntSpan-1.19.tar.gz" |