aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-load-xs/APKBUILD
blob: ee43ec4ee6220ab18a0a4f9c27478487f4c943f0 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-class-load-xs
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Class-Load-XS
pkgver=0.10
pkgrel=8
pkgdesc="XS implementation of parts of Class::Load"
url="https://metacpan.org/release/Class-Load-XS/"
arch="all"
license="Artistic-2.0"
depends="perl perl-class-load"
makedepends="perl-dev"
checkdepends="perl-test-without-module perl-test-requires perl-test-needs perl-test-fatal perl-module-implementation"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Load-XS-$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="16ab845dc393567f0b0e9597eda7d7678b8a41d218823a166bacdfd4dc93e704a6aff98662340b8d7f4d045a60530071bb84ea8da8be5a6930af47722207d126  Class-Load-XS-0.10.tar.gz"