aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-log-log4perl/APKBUILD
blob: 3e3111e726a115a521cf41126ed4251f457af56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-log-log4perl
_pkgreal=Log-Log4perl
pkgver=1.49
pkgrel=1
pkgdesc="Log4j implementation for Perl"
url="http://search.cpan.org/dist/Log-Log4perl/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-log-dispatch perl-dbi"
depends="$cpandepends"
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"

prepare() {
	default_prepare

	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

check() {
        cd "$builddir"
        make test
}

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

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