# Automatically generated by apkbuild-cpan, template 3 # Contributor: Milan P. Stanić # Maintainer: Milan P. Stanić pkgname=perl-glib-object-introspection #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Glib-Object-Introspection pkgver=0.051 pkgrel=0 pkgdesc="Dynamically create Perl language bindings" url="https://metacpan.org/release/Glib-Object-Introspection/" arch="all" license="GPL-2.0-or-later" depends="perl perl-glib perl-extutils-pkgconfig perl-extutils-depends" makedepends="perl-dev gobject-introspection-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-Object-Introspection-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # arrays.t and callbacks.t fails after ffi3.4 upgrade 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=" 93ebe81b586270cbeca4296bfdd1d337d931b6349ca16a8e50bfc631c89a77d93f4d8076289e91bdcec0fdb732a2900b2a6c5e78e571c0c0fd4c7f5239cc0de5 Glib-Object-Introspection-0.051.tar.gz "