# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'perl-glib-ex-objectbits'
setvar _pkgreal = 'Glib-Ex-ObjectBits'
setvar pkgver = '16'
setvar pkgrel = '0'
setvar pkgdesc = ""Helpers for Glib objects.""
setvar url = ""http://search.cpan.org/dist/Glib-Ex-ObjectBits/""
setvar arch = ""noarch""
setvar license = ""gpl_3""
setvar cpandepends = ""perl-devel-globaldestruction perl-glib""
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $_builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	make && make test
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar md5sums = ""54be83717715e110e8934d6334d916aa  Glib-Ex-ObjectBits-16.tar.gz""
setvar sha256sums = ""629a846ec03ed354d71464489f8dfa37ea7274c38e39041c03bf233673812c8f  Glib-Ex-ObjectBits-16.tar.gz""
setvar sha512sums = ""e5820d251512121f4b44cfd67bcf44b1d94dfb756c5e646436684c45ff2d12f12cbfef4d9deb5deaaec0195ae1113448f0427dfe7f175ebd0ed878fb4ddcf671  Glib-Ex-ObjectBits-16.tar.gz""