Date: Thursday, August 24, 2017 @ 13:52:48 Author: foutrelis Revision: 253274
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: perl-json-xs/repos/community-staging-i686/ perl-json-xs/repos/community-staging-i686/PKGBUILD (from rev 253273, perl-json-xs/trunk/PKGBUILD) perl-json-xs/repos/community-staging-x86_64/ perl-json-xs/repos/community-staging-x86_64/PKGBUILD (from rev 253273, perl-json-xs/trunk/PKGBUILD) -----------------------------------+ community-staging-i686/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ community-staging-x86_64/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) Copied: perl-json-xs/repos/community-staging-i686/PKGBUILD (from rev 253273, perl-json-xs/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2017-08-24 13:52:48 UTC (rev 253274) @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Tor Krill <t...@krill.nu> + +pkgname=perl-json-xs +pkgver=3.03 +pkgrel=3 +pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast" +url="http://search.cpan.org/dist/JSON-XS/" +license=("GPL") +arch=('i686' 'x86_64') +depends=('perl' 'perl-common-sense' 'perl-types-serialiser' 'perl-canary-stability') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz) +sha256sums=('699e8e3e516e2ea9e05d8ca769dc1f31b36b7a0830e100004f016a702e876dde') + +build() { + cd "$srcdir"/JSON-XS-$pkgver + PERL_CANARY_STABILITY_NOPROMPT=1 \ + perl Makefile.PL INSTALLDIRS=vendor + make +} +package() { + cd "$srcdir"/JSON-XS-$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; +} Copied: perl-json-xs/repos/community-staging-x86_64/PKGBUILD (from rev 253273, perl-json-xs/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-08-24 13:52:48 UTC (rev 253274) @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Tor Krill <t...@krill.nu> + +pkgname=perl-json-xs +pkgver=3.03 +pkgrel=3 +pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast" +url="http://search.cpan.org/dist/JSON-XS/" +license=("GPL") +arch=('i686' 'x86_64') +depends=('perl' 'perl-common-sense' 'perl-types-serialiser' 'perl-canary-stability') +options=('!emptydirs') +source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz) +sha256sums=('699e8e3e516e2ea9e05d8ca769dc1f31b36b7a0830e100004f016a702e876dde') + +build() { + cd "$srcdir"/JSON-XS-$pkgver + PERL_CANARY_STABILITY_NOPROMPT=1 \ + perl Makefile.PL INSTALLDIRS=vendor + make +} +package() { + cd "$srcdir"/JSON-XS-$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; +}