# Automatically generated by apkbuild-cpan, template 1
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
setvar pkgname = 'perl-xml-libxslt'
setvar _pkgreal = 'XML-LibXSLT'
setvar pkgver = '1.95'
setvar pkgrel = '1'
setvar pkgdesc = ""Interface to GNOME libxslt library""
setvar url = ""http://search.cpan.org/dist/XML-LibXSLT/""
setvar arch = ""all""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-xml-libxml""
setvar cpanmakedepends = ""   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends libxml2-dev libxslt-dev libgcrypt-dev libgpg-error-dev""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_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 = ""adf26f5195e18087c89ef3e7f7d97c43  XML-LibXSLT-1.95.tar.gz""
setvar sha256sums = ""f1ca21135acc53af9f175958ef5fceb453fd0ef383cfb0e6ef6ea24031f3ef35  XML-LibXSLT-1.95.tar.gz""
setvar sha512sums = ""06a1c9896a391be2588995f25520da05f086b3fa79109884131525a0d76a7b375e0c5a2febf8a79a888f3a9bd25b5eb39064de1baeffafcfe18f5576c9c54e19  XML-LibXSLT-1.95.tar.gz""