# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: 
setvar pkgname = 'perl-html-gumbo'
setvar _pkgreal = 'HTML-Gumbo'
setvar pkgver = '0.13'
setvar pkgrel = '1'
setvar pkgdesc = ""Perl module for HTML-Gumbo""
setvar url = ""http://search.cpan.org/dist/HTML-Gumbo/""
setvar arch = ""all""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl perl-alien-libgumbo""
setvar cpanmakedepends = ""perl-module-build gumbo-parser-dev""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/$_pkgreal-$pkgver.tar.gz""

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

proc prepare {
	cd $_builddir
	if test -e Build.PL {
		perl Build.PL installdirs=vendor || return 1
	} else {'
		PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor || return 1
	}
}

proc build {
	cd $_builddir
	./Build PERL_MM_USE_DEFAULT=1 INSTALLDIRS=vendor || return 1
}

proc package {
	cd $_builddir
	install -m0644 -D ./blib/arch/auto/HTML/Gumbo/Gumbo.so \
		"$pkgdir"/usr/share/perl5/vendor_perl/auto/HTML/Gumbo/Gumbo.so
	install -m0644 -D ./blib/lib/HTML/Gumbo.pm \
		"$pkgdir"/usr/share/perl5/vendor_perl/HTML/Gumbo.pm
	gzip ./blib/libdoc/HTML::Gumbo.3pm
	install -m0644 -D ./blib/libdoc/HTML::Gumbo.3pm.gz \
		"$pkgdir"/usr/share/man/man3/HTML::Gumbo.3pm.gz
}

setvar md5sums = ""189681412073f4a5d9874b0e21d592d6  HTML-Gumbo-0.13.tar.gz""
setvar sha256sums = ""84acaf5f89e2b4cd73800561acad0bfbc6a4e7ec315d84c0c072ae41546d7ca7  HTML-Gumbo-0.13.tar.gz""
setvar sha512sums = ""447b42a1a9facb2e8d0f1d7d55e19a8c82cc556ba490d7de6a79602506bdf77a8fbd3c18d4d23d93730883b7dbae5f781ca6881e310f05f564b2886007f9fa74  HTML-Gumbo-0.13.tar.gz""