aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-log-log4perl/APKBUILD
blob: 23c102917d956bdd82cb1e7380c1bb44f5cacf9c (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
45
# 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.47
pkgrel=0
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() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	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
}

md5sums="53a0a2e68da51fa445c3557e4852d3a4  Log-Log4perl-1.47.tar.gz"
sha256sums="9001dded011226538b9a50c7856815bb0dba72a1e6218fdcaba56f651356b96f  Log-Log4perl-1.47.tar.gz"
sha512sums="f0630cdb22586a9ab85d9ed900a9becb74a15376155f334efdf19bd0eeba00fe76820d6cef74550263c55dc2773504ac0ac8e94b5f287da739e8fbad18a6a5a6  Log-Log4perl-1.47.tar.gz"