summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSwift Geek2015-06-10 15:03:11 +0200
committerSwift Geek2015-06-10 15:03:11 +0200
commit170c4c4d03c848365202da0d1c87bdd6fc1145d5 (patch)
tree720fc0f781070adc730a915a996af9f1a6eb3344
downloadaur-170c4c4d03c848365202da0d1c87bdd6fc1145d5.tar.gz
AUR4 import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD48
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c37361d555
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = perl-xml-sax-expatxs
+ pkgdesc = Perl SAX 2 XS extension to Expat parser
+ pkgver = 1.33
+ pkgrel = 1
+ url = https://metacpan.org/release/XML-SAX-ExpatXS/
+ arch = any
+ license = GPL
+ license = PerlArtistic
+ depends = perl>=5.10.0
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/P/PC/PCIMPRICH/XML-SAX-ExpatXS-1.33.tar.gz
+ md5sums = 3d69bb642ea275871a2f91a08a51cd8c
+
+pkgname = perl-xml-sax-expatxs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2b644690a39
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Contributor: Swift Geek <swiftgeek «at» gmail.com>
+pkgname=perl-xml-sax-expatxs
+pkgver=1.33
+pkgrel=1
+pkgdesc="Perl SAX 2 XS extension to Expat parser"
+arch=('any')
+url="https://metacpan.org/release/XML-SAX-ExpatXS/"
+license=('GPL' 'PerlArtistic')
+depends=('perl>=5.10.0')
+makedepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=(!emptydirs)
+install=
+source=("http://search.cpan.org/CPAN/authors/id/P/PC/PCIMPRICH/XML-SAX-ExpatXS-${pkgver}.tar.gz")
+md5sums=('3d69bb642ea275871a2f91a08a51cd8c')
+
+prepare() {
+ export _src_dir="$srcdir/XML-SAX-ExpatXS-$pkgver"
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+ cd "$_src_dir"
+ sed -i -e "s|y/|n/|" ./Makefile.PL # fix from gentoo .ebuild
+}
+
+build() {
+ cd "$_src_dir"
+ /usr/bin/perl Makefile.PL
+ make
+}
+
+check () {
+ cd "$_src_dir"
+ make test
+}
+
+package () {
+ cd "$_src_dir"
+ make install
+
+ # remove perllocal.pod and .packlist
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}