aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-autobox/APKBUILD
blob: c7b2cacac9bdfc1da19c21c0773150778b6ec50e (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-autobox
_pkgreal=autobox
pkgver=3.0.1
pkgrel=4
pkgdesc="call methods on native types"
url="https://metacpan.org/release/autobox"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-scope-guard"
cpanmakedepends="perl-ipc-system-simple perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev perl-test-pod $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CH/CHOCOLATE/$_pkgreal-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"

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

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

check() {
	make test
}

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

sha512sums="401d5e87e15cf26362a88e5d23d8c9e842b951c03ac7010da2317af5ea897fa1fe2e4862cc5c691f25851fd5ba5398935c27f6d9f87fbc2fe52bb68a25d3d3a0  autobox-v3.0.1.tar.gz"