archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-xml-twig / repos / extra-any / PKGBUILD
blob521cf2776b1232b5bb6bff38084521644092e116
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-xml-twig
4 pkgver=3.52
5 pkgrel=10
6 pkgdesc="A module for easy processing of XML"
7 arch=('any')
8 url="https://search.cpan.org/dist/XML-Twig/"
9 license=('GPL' 'PerlArtistic')
10 depends=('perl-xml-parser' 'perl-text-iconv' 'perl')
11 checkdepends=('perl-libwww' 'perl-test-pod' 'perl-xml-simple' 'perl-html-tree' 'perl-xml-xpath' 'perl-tie-ixhash')
12 options=('!emptydirs')
13 source=("https://www.cpan.org/authors/id/M/MI/MIROD/XML-Twig-${pkgver}.tar.gz")
14 sha256sums=('fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad')
16 build() {
17   cd XML-Twig-${pkgver}
18   perl Makefile.PL -y INSTALLDIRS=vendor
19   make
22 check() {
23   cd XML-Twig-${pkgver}
24   make test || warning "Tests failed"
27 package() {
28   cd XML-Twig-${pkgver}
29   make DESTDIR="${pkgdir}" install