diff options
author | Alexandr Savca <alexandr.savca89@gmail.com> | 2018-03-31 22:50:48 +0300 |
---|---|---|
committer | Alexandr Savca <alexandr.savca89@gmail.com> | 2018-03-31 22:50:48 +0300 |
commit | 81212dfe2026940c8c134e30f6bf1cccf9540601 (patch) | |
tree | 95780b2c9c230f908902364de087df545b9956c4 /p5-xml-twig/Pkgfile | |
parent | e740ce8e3fc5cf72f3c2d123dedd24c07b388a81 (diff) | |
download | contrib-81212dfe2026940c8c134e30f6bf1cccf9540601.tar.gz contrib-81212dfe2026940c8c134e30f6bf1cccf9540601.tar.xz |
p5-xml-twig: initial commit
Diffstat (limited to 'p5-xml-twig/Pkgfile')
-rw-r--r-- | p5-xml-twig/Pkgfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/p5-xml-twig/Pkgfile b/p5-xml-twig/Pkgfile new file mode 100644 index 000000000..0766beb47 --- /dev/null +++ b/p5-xml-twig/Pkgfile @@ -0,0 +1,26 @@ +# Description: Perl module for processing huge XML documents in tree mode +# URL: https://metacpan.org/pod/XML::Twig +# Maintainer: Alexandr Savca, alexandr dot savca89 at gmail dot com +# Depends on: perl-xml-parser + +name=p5-xml-twig +version=3.52 +release=1 +source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-$version.tar.gz) + +build() { + cd XML-Twig-$version + perl Makefile.PL -y + + make OPTIMIZE="$CFLAGS" + make DESTDIR=$PKG install + + find $PKG -name perllocal.pod \ + -o -name "*.bs" \ + -o -name .packlist \ + -o -name autosplit.ix \ + | xargs rm -f + + find $PKG -depth -type d -empty -delete + find $PKG -type f -a -perm -u-w | xargs chmod u+w +} |