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

Felix Yan fyan at archlinux.org
Wed May 11 04:43:31 UTC 2016


    Date: Wednesday, May 11, 2016 @ 06:43:30
  Author: fyan
Revision: 267746

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

Added:
  perl-dbi/repos/staging-i686/
  perl-dbi/repos/staging-i686/PKGBUILD
    (from rev 267745, perl-dbi/trunk/PKGBUILD)
  perl-dbi/repos/staging-x86_64/
  perl-dbi/repos/staging-x86_64/PKGBUILD
    (from rev 267745, perl-dbi/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   38 ++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: perl-dbi/repos/staging-i686/PKGBUILD (from rev 267745, perl-dbi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-05-11 04:43:30 UTC (rev 267746)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-dbi
+pkgver=1.636
+pkgrel=2
+pkgdesc="Database independent interface for Perl"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/DBI/"
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/T/TI/TIMB/DBI-$pkgver.tar.gz)
+md5sums=('60f291e5f015550dde71d1858dfe93ba')
+
+build() {
+  cd DBI-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd DBI-$pkgver
+  make test
+}
+
+package() {
+  cd DBI-$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-dbi/repos/staging-x86_64/PKGBUILD (from rev 267745, perl-dbi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-05-11 04:43:30 UTC (rev 267746)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-dbi
+pkgver=1.636
+pkgrel=2
+pkgdesc="Database independent interface for Perl"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/DBI/"
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/T/TI/TIMB/DBI-$pkgver.tar.gz)
+md5sums=('60f291e5f015550dde71d1858dfe93ba')
+
+build() {
+  cd DBI-$pkgver
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd DBI-$pkgver
+  make test
+}
+
+package() {
+  cd DBI-$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