aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-glib-object-introspection/APKBUILD
blob: c7770dc5d19ceaef24470e678942366e89e1126a (plain)
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
37
38
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
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
"