aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sys-syslog/APKBUILD
blob: e84433aad4fe1ac73872f6cefea017ff61bb8a0c (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-sys-syslog
_pkgreal=Sys-Syslog
pkgver=0.36
pkgrel=1
pkgdesc="Perl interface to the UNIX syslog(3) calls"
url="https://metacpan.org/pod/Sys::Syslog"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-pod perl-test-pod-coverage"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SA/SAPER/Sys-Syslog-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

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

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="6480dce76863e57cb90d981c20ecd7b9946cf076c3eed73aeabf7f4236a4b6d3ebeab52b1d04f0f7cfaee01602829a013d4660d5f2cdfa501f43c2c59160777a  Sys-Syslog-0.36.tar.gz"