diff options
Diffstat (limited to 'main/perl-sub-exporter')
-rw-r--r-- | main/perl-sub-exporter/APKBUILD | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/main/perl-sub-exporter/APKBUILD b/main/perl-sub-exporter/APKBUILD index cdc8385baf..5b47ba6d83 100644 --- a/main/perl-sub-exporter/APKBUILD +++ b/main/perl-sub-exporter/APKBUILD @@ -1,34 +1,32 @@ -# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-sub-exporter +_pkgreal=Sub-Exporter pkgver=0.986 -pkgrel=0 -pkgdesc="Sub::Exporter perl module" +pkgrel=1 +pkgdesc="a sophisticated exporter for custom-built routines" url="http://search.cpan.org/dist/Sub-Exporter/" arch="noarch" -license="GPLv2 or Artistic" -depends="perl perl-data-optlist perl-sub-install" -makedepends="perl-dev" -install="" +license="GPL PerlArtistic" +cpandepends="perl-data-optlist perl-sub-install perl-params-util" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/Sub-Exporter-$pkgver prepare() { - local i cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make test || return 1 + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { |