[arch-commits] Commit in perl-json-xs/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Jun 1 12:38:26 UTC 2017
Date: Thursday, June 1, 2017 @ 12:38:25
Author: felixonmars
Revision: 232264
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 232263, perl-json-xs/trunk/PKGBUILD)
perl-json-xs/repos/community-staging-x86_64/
perl-json-xs/repos/community-staging-x86_64/PKGBUILD
(from rev 232263, 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 232263, perl-json-xs/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-06-01 12:38:25 UTC (rev 232264)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Tor Krill <tor at krill.nu>
+
+pkgname=perl-json-xs
+pkgver=3.03
+pkgrel=2
+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 232263, perl-json-xs/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-06-01 12:38:25 UTC (rev 232264)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Tor Krill <tor at krill.nu>
+
+pkgname=perl-json-xs
+pkgver=3.03
+pkgrel=2
+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;
+}
More information about the arch-commits
mailing list