aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-parse-syslog/APKBUILD
blob: a22b83ca139abe188ea2abd0ecf4d976f8ab04b1 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer:  Michael Mason <ms13sp@gmail.com>
pkgname=perl-parse-syslog
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Parse-Syslog
pkgver=1.10
pkgrel=6
pkgdesc="Perl module for Parse-Syslog"
url="https://metacpan.org/release/Parse-Syslog/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DS/DSCHWEI/Parse-Syslog-$pkgver.tar.gz
	remove-locale-tests.patch"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="85d4f36aeb4873a51738cc909793a8b4a2029a0b6504105e4cae61bb3248cba5dbec18300f8333ff44a4877561d945ced04a8b49d05b2e65a4d1c54df1f961eb  Parse-Syslog-1.10.tar.gz
30a8a88d5c2b1fc041f2c006c65451db77b59b82c48521c0ff0fe470ca35b833a45f0cc3ac22139e709b3b31db8e035d14ace29a6642059f13da67526317867e  remove-locale-tests.patch"