# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-xml-simple
pkgver=2.24
pkgrel=0
pkgdesc="Simple XML parser for perl"
url="http://search.cpan.org/dist/XML-Simple/"
arch="noarch"
license="PerlArtistic"
subpackages="$pkgname-doc"
depends="perl-xml-parser perl"
makedepends="perl-dev"
source="ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GR/GRANTM/XML-Simple-$pkgver.tar.gz"

build() {
	cd "$srcdir"/XML-Simple-$pkgver
	perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$srcdir"/XML-Simple-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" -name '.packlist' -delete
	find "$pkgdir" -name 'perllocal.pod' -delete
}
sha512sums="fd57d1be7fdd884d55d22e478a3f94a111b5fc23167851a2ff15894807877c71a1620d3208693e8a1dfb00b385ac4f011d2b56f239c63d2c9d435701df7b3942  XML-Simple-2.24.tar.gz"
