From f6332a43c35387c4a2dea1746be5fd092890ae0e Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 27 Jun 2022 23:09:07 +0100 Subject: added lf and iptables --- repo/perl-xml-sax/perl-xml-sax.xibuild | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 repo/perl-xml-sax/perl-xml-sax.xibuild (limited to 'repo/perl-xml-sax') diff --git a/repo/perl-xml-sax/perl-xml-sax.xibuild b/repo/perl-xml-sax/perl-xml-sax.xibuild new file mode 100644 index 0000000..52500aa --- /dev/null +++ b/repo/perl-xml-sax/perl-xml-sax.xibuild @@ -0,0 +1,25 @@ +#!/bin/sh + +NAME="perl-xml-sax" +DESC="Simple API for XML" + +MAKEDEPS="" +DEPS="perl-xml-sax-base" + +PKG_VER=1.02 +SOURCE="https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-$PKG_VER.tar.gz" + +build() { + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +package() { + PERLLIB=blib/lib make DESTDIR="$PKG_DEST" install + find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete +} + +postinstall () { + LC_ALL=C perl -MXML::SAX -e \ + "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" 2>&1 >/dev/null +} -- cgit v1.2.1