APKBUILD 1.19 KB
Newer Older
1
# Automatically generated by apkbuild-cpan, template 1
2 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
4 5
pkgname=perl-log-log4perl
_pkgreal=Log-Log4perl
6
pkgver=1.49
7 8 9 10 11 12
pkgrel=0
pkgdesc="Log4j implementation for Perl"
url="http://search.cpan.org/dist/Log-Log4perl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
13
cpanmakedepends="perl-log-dispatch perl-dbi"
14 15 16
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
17
source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/$_pkgreal-$pkgver.tar.gz"
18 19 20 21

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
22
	local i
23
	cd "$_builddir"
24 25 26 27 28
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
29 30 31 32 33 34 35 36 37 38 39 40 41 42
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

43
sha512sums="3ee1104dbede8eb40b3055a606f8f004be0eb74223c4e33bc6f384bec9c34f697708cbee66198e92de053cbedd691e5354aede6874ef6be7e82f8eb95edee58f  Log-Log4perl-1.49.tar.gz"