# 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.049 pkgrel=3 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="fa927661dc761bfae9dba87e1e2d519b10c3aac4d6dcea37764972a0413a4f5025a12df640d66928b631c2933d4b0e6d02b559ea2c1eaa38fae6f7a9d98fe322 Glib-Object-Introspection-0.049.tar.gz"