# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
setvar pkgname = 'perl-gtk2-ex-widgetbits'
setvar _pkgreal = 'Gtk2-Ex-WidgetBits'
setvar pkgver = '48'
setvar pkgrel = '0'
setvar pkgdesc = ""Helpers for Gtk2 widgets.""
setvar url = ""http://search.cpan.org/dist/Gtk2-Ex-WidgetBits/""
setvar arch = ""noarch""
setvar license = ""open_source""
setvar cpandepends = ""perl-glib perl-glib-ex-objectbits perl-gtk2 perl-scope-guard perl-pango""
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 = ""f65aadb9213492b2ceaad874c5b49943  Gtk2-Ex-WidgetBits-48.tar.gz""