# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=perl-inline-c #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Inline-C pkgver=0.82 pkgrel=3 pkgdesc="C Language Support for Inline" url="https://metacpan.org/release/Inline-C/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-parse-recdescent perl-inline" makedepends="perl-dev perl-file-sharedir-install" checkdepends="perl-yaml-libyaml perl-test-warn perl-file-copy-recursive" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/E/ET/ETJ/Inline-C-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # no perl-pegex 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=" 1d1e91a63df12b4f3dc631fd1b66f9bd2e006b300002d9aa184ab571a128953722127400a39055d07ee630709f2a7c96dd35ad6e0860959cbb5a6fce3134b357 Inline-C-0.82.tar.gz "