diff options
Diffstat (limited to 'main/perl-inline-c/APKBUILD')
-rw-r--r-- | main/perl-inline-c/APKBUILD | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/main/perl-inline-c/APKBUILD b/main/perl-inline-c/APKBUILD index 38553604125..9474da9c926 100644 --- a/main/perl-inline-c/APKBUILD +++ b/main/perl-inline-c/APKBUILD @@ -1,38 +1,37 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=perl-inline-c +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Inline-C pkgver=0.82 -pkgrel=0 -pkgdesc="Perl module for Inline-C" -url="https://metacpan.org/dist/Inline-C" +pkgrel=2 +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" -options="!check" # fixme: add checkdepends -depends="perl" -makedepends="perl-file-sharedir-install" +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/$_pkgreal-$pkgver.tar.gz" - +source="https://cpan.metacpan.org/authors/id/E/ET/ETJ/Inline-C-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" - -prepare() { - default_prepare - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor -} +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 install DESTDIR="$pkgdir" - find "$pkgdir" -name perllocal.pod -delete + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" |