updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-xml-entities / PKGBUILD
blobc08b8dcd56cc0145e83a2c87c33775c23457831b
2 # Contributor: max-k <max-k@post.com>
4 pkgname=perl-xml-entities
5 _realname=XML-Entities
6 pkgver=1.0000
7 pkgrel=1
8 pkgdesc="XML::Entities - Decode strings with XML entities"
9 url="http://search.cpan.org/dist/XML-Entities/lib/XML/Entities.pm"
10 license=('GPL')
11 depends=('perl>=5.10.0' 'perl-html-parser')
12 arch=('i686' 'x86_64')
13 options=(!emptydirs)
15 source=(http://ftp.crihan.fr/mirrors/ftp.cpan.org/authors/id/S/SI/SIXTEASE/${_realname}-${pkgver}.tar.gz)
16 md5sums=('e25406fec04ea5ea9c346a19b0900bc5')
18 build() {
19   cd ${startdir}/src/${_realname}
21   # Install module into the vendor directory.
22   /usr/bin/perl Makefile.PL INSTALLDIRS=vendor || return 1
23   make || return 1
24   make test || return 1
25   make DESTDIR=${startdir}/pkg install || return 1
27   # Remove .packlist file.
28   find ${startdir}/pkg -name '.packlist' -delete