diff options
-rw-r--r-- | main/perl-log-any/APKBUILD | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/main/perl-log-any/APKBUILD b/main/perl-log-any/APKBUILD index 9ace8b2a22..19966518f7 100644 --- a/main/perl-log-any/APKBUILD +++ b/main/perl-log-any/APKBUILD @@ -1,39 +1,48 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=perl-log-any _pkgreal=Log-Any -pkgver=0.15 +pkgver=1.049 pkgrel=0 pkgdesc="Bringing loggers and listeners together" url="http://search.cpan.org/dist/Log-Any/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" +cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" +checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/J/JS/JSWARTZ/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +source="http://search.cpan.org/CPAN/authors/id/P/PR/PREACTION/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="8337dd1dedd499de70f941ef980b5fe9 Log-Any-0.15.tar.gz" -sha256sums="fbb24743d1b61debc490cb41f8f3f1e865379c8b52dacb419f10ff03d02b1cb2 Log-Any-0.15.tar.gz" -sha512sums="4f1919c64ca5bbb2773369ab44ef972272926554b37f95d31a8dbd1f11da730307b55023eba1396c608ce194c70a83afe59034c116fa2c5817b7037222948869 Log-Any-0.15.tar.gz" +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +sha512sums="9a6363c7fa8c187deb1c9008411150d3c6a723e17c51cfd957127b2f33246ce680bcea47eae15e856358e643ea8bd8c923a540503b733c421d94f9fdca340f7b Log-Any-1.049.tar.gz" |