aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-chi/APKBUILD
blob: 0492d5dafd96aca25500ff8fa43bac2792e30393 (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: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-chi
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CHI
pkgver=0.60
pkgrel=1
pkgdesc="Unified cache handling interface"
url="https://metacpan.org/release/CHI/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-time-duration perl-moo perl-carp-assert perl-time-duration-parse perl-moox-types-mooselike perl-digest-jhash perl-task-weaken perl-hash-moreutils perl-try-tiny perl-data-uuid perl-moox-types-mooselike-numeric perl-class-load perl-list-moreutils perl-json-maybexs perl-log-any perl-string-rewriteprefix"
makedepends="perl-dev"
checkdepends="perl-test-warn perl-timedate perl-test-deep perl-test-class perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/CHI-$pkgver.tar.gz"
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="06d3f22465f38868795a4ee97e1b3e40e66d423c4e28c066c2f11721b770e77c6134ad122ec9a7ea6a7e215d0b712e57c54d91bae02770fbc61e3c10a465b29d  CHI-0.60.tar.gz"