# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-gtk2
_pkgreal=Gtk2
pkgver=1.24992
pkgrel=0
pkgdesc="Perl module for Gtk2"
url="http://search.cpan.org/dist/Gtk2/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-extutils-depends perl-extutils-pkgconfig perl-glib perl-pango"
depends="$cpandepends"
makedepends="perl-dev gtk+2.0-dev glib-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/Gtk2-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make #&& make test
}

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

sha512sums="a3d0ac22ce0f356f1a73c6b7d27161f76573b64cfde54e76d751ce8318eda9410e57d905e03b2562b8d31b80d3dba2bd4a8a7980a331bd5ca0c6f75e61e4e6f7  Gtk2-1.24992.tar.gz"
