diff options
Diffstat (limited to 'community/perl-log-log4perl/APKBUILD')
-rw-r--r-- | community/perl-log-log4perl/APKBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/community/perl-log-log4perl/APKBUILD b/community/perl-log-log4perl/APKBUILD index 8901c6cbd1..3e3111e726 100644 --- a/community/perl-log-log4perl/APKBUILD +++ b/community/perl-log-log4perl/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-log-log4perl _pkgreal=Log-Log4perl pkgver=1.49 -pkgrel=0 +pkgrel=1 pkgdesc="Log4j implementation for Perl" url="http://search.cpan.org/dist/Log-Log4perl/" arch="noarch" @@ -16,27 +16,28 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$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 + default_prepare + + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |