[arch-commits] Commit in perl-dbi/repos (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Jun 1 18:20:03 UTC 2017
Date: Thursday, June 1, 2017 @ 18:20:03
Author: foutrelis
Revision: 297323
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
perl-dbi/repos/staging-i686/
perl-dbi/repos/staging-i686/PKGBUILD
(from rev 297322, perl-dbi/trunk/PKGBUILD)
perl-dbi/repos/staging-x86_64/
perl-dbi/repos/staging-x86_64/PKGBUILD
(from rev 297322, 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 297322, perl-dbi/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2017-06-01 18:20:03 UTC (rev 297323)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-dbi
+pkgver=1.636
+pkgrel=3
+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 297322, perl-dbi/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-06-01 18:20:03 UTC (rev 297323)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-dbi
+pkgver=1.636
+pkgrel=3
+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