From 85e085ca7e85056aa854a0f3e600332eeccb98ba Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 25 Dec 2014 10:03:31 +0000 Subject: main/perl-class-singleton: upgrade to 1.5 --- main/perl-class-singleton/APKBUILD | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/main/perl-class-singleton/APKBUILD b/main/perl-class-singleton/APKBUILD index 3305f058b9..37f7d18dcc 100644 --- a/main/perl-class-singleton/APKBUILD +++ b/main/perl-class-singleton/APKBUILD @@ -1,33 +1,32 @@ -# Contributor: Natanael Copa +# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-class-singleton -pkgver=1.4 +_pkgreal=Class-Singleton +pkgver=1.5 pkgrel=0 -pkgdesc="Class::Singleton perl module" +pkgdesc="Base class for creating singleton objects" url="http://search.cpan.org/dist/Class-Singleton/" arch="noarch" -license="GPLv2 or Artistic" -depends="perl" -makedepends="perl-dev" -install="" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Class-Singleton-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/Class-Singleton-$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 && make test || return 1 + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { @@ -36,4 +35,6 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="a18b108ab97e2107cbbe816d2b3e2ee3 Class-Singleton-1.4.tar.gz" +md5sums="6a2524f590eda075f4bc929598119241 Class-Singleton-1.5.tar.gz" +sha256sums="38220d04f02e3a803193c2575a1644cce0b95ad4b95c19eb932b94e2647ef678 Class-Singleton-1.5.tar.gz" +sha512sums="f061a8b92d5f65e4fbcd14ef36ff1216f84443f487de34c98f7d08d6d18148f156c0cbd6249e75ac448c17547d1172dbda8b670a8e7573d3581c9c1196eb4804 Class-Singleton-1.5.tar.gz" -- cgit v1.2.3