[arch-commits] Commit in perl-netaddr-ip/repos (4 files)

Felix Yan fyan at archlinux.org
Wed Jun 3 02:06:06 UTC 2015


    Date: Wednesday, June 3, 2015 @ 04:06:06
  Author: fyan
Revision: 240248

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  perl-netaddr-ip/repos/staging-i686/
  perl-netaddr-ip/repos/staging-i686/PKGBUILD
    (from rev 240247, perl-netaddr-ip/trunk/PKGBUILD)
  perl-netaddr-ip/repos/staging-x86_64/
  perl-netaddr-ip/repos/staging-x86_64/PKGBUILD
    (from rev 240247, perl-netaddr-ip/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   37 +++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

Copied: perl-netaddr-ip/repos/staging-i686/PKGBUILD (from rev 240247, perl-netaddr-ip/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-06-03 02:06:06 UTC (rev 240248)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-netaddr-ip
+pkgver=4.075
+pkgrel=2
+pkgdesc="Perl module to manage IP addresses and subnets"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/NetAddr-IP/"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-${pkgver}.tar.gz)
+md5sums=('b72b91ebd228b096fd3b0acc87df877e')
+
+build() {
+  cd NetAddr-IP-${pkgver}
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd NetAddr-IP-${pkgver}
+  make test
+}
+
+package() {
+  cd NetAddr-IP-${pkgver}
+  make DESTDIR="${pkgdir}" install
+# 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-netaddr-ip/repos/staging-x86_64/PKGBUILD (from rev 240247, perl-netaddr-ip/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-06-03 02:06:06 UTC (rev 240248)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-netaddr-ip
+pkgver=4.075
+pkgrel=2
+pkgdesc="Perl module to manage IP addresses and subnets"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/NetAddr-IP/"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-${pkgver}.tar.gz)
+md5sums=('b72b91ebd228b096fd3b0acc87df877e')
+
+build() {
+  cd NetAddr-IP-${pkgver}
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd NetAddr-IP-${pkgver}
+  make test
+}
+
+package() {
+  cd NetAddr-IP-${pkgver}
+  make DESTDIR="${pkgdir}" install
+# 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