summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBartłomiej Piotrowski2018-01-07 17:36:36 +0100
committerBartłomiej Piotrowski2018-01-07 17:36:36 +0100
commit8cb874a579c8db8cfee2274bc9dd27f9be7490f3 (patch)
treedd93afe487cb2cf6a3771421790250250abfaa65 /PKGBUILD
downloadaur-perl-xml-fast.tar.gz
Import from official repositories
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..20ee27e9bbf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: trizen .= x@gmail.com
+
+pkgname=perl-xml-fast
+pkgver=0.11
+pkgrel=10
+pkgdesc="Simple and very fast XML to hash conversion."
+arch=('x86_64')
+url="http://search.cpan.org/dist/XML-Fast/"
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/M/MO/MONS/XML-Fast-${pkgver}.tar.gz")
+md5sums=('a2985cc2f328cf9eda6ad75c3f40f6b3')
+
+build() {
+ cd "${srcdir}/XML-Fast-${pkgver}"
+
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+
+ make
+}
+
+package() {
+ cd "${srcdir}/XML-Fast-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ find ${pkgdir} -name '.packlist' -delete
+ find ${pkgdir} -name '*.pod' -delete
+
+# template start; name=perl-binary-module-dependency; version=1;
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
+# template end;
+}