summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-30 20:32:25 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-30 20:32:25 (GMT)
commitbe6be4e7063e9f330c6dbd926043bbec1bfe9121 (patch)
treeebe5af28938845de3f1f19de95016fb16321cc23 /abs
parent5aa6f6cc6263c30e8a53c5c61ad484ffca41ce75 (diff)
downloadlinhes_pkgbuild-be6be4e7063e9f330c6dbd926043bbec1bfe9121.zip
linhes_pkgbuild-be6be4e7063e9f330c6dbd926043bbec1bfe9121.tar.gz
linhes_pkgbuild-be6be4e7063e9f330c6dbd926043bbec1bfe9121.tar.bz2
perl-dbi: update to 1.641
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-dbi/PKGBUILD36
1 files changed, 19 insertions, 17 deletions
diff --git a/abs/core/perl_modules/perl-dbi/PKGBUILD b/abs/core/perl_modules/perl-dbi/PKGBUILD
index 602acd0..ef4b9d0 100644
--- a/abs/core/perl_modules/perl-dbi/PKGBUILD
+++ b/abs/core/perl_modules/perl-dbi/PKGBUILD
@@ -1,36 +1,38 @@
-# $Id: PKGBUILD 163571 2012-07-16 03:09:15Z eric $
-# Maintainer: kevin <kevin@archlinux.org>
-# Contributor: Matt Thompson <mattt@defunct.ca>
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=perl-dbi
-_realname=DBI
-pkgver=1.622
+pkgver=1.641
pkgrel=1
pkgdesc="Database independent interface for Perl"
-arch=('i686' 'x86_64')
+arch=('x86_64')
+url="http://search.cpan.org/dist/DBI/"
license=('GPL' 'PerlArtistic')
-url="http://search.cpan.org/dist/${_realname}/"
depends=('perl')
+checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/T/TI/TIMB/${_realname}-${pkgver}.tar.gz)
-md5sums=('9836bcf1b9acc842089aa10b16736909')
+source=(http://www.cpan.org/authors/id/T/TI/TIMB/DBI-$pkgver.tar.gz)
+sha512sums=('093eb28526e8290c0599437cd624b3e670cfff0ec149c1e8ad942f9f7facdafd2a8225bbf4efdb0d40ecf5a6088093ff9faec826cd4ec88bd0abd6125812137a')
build() {
- cd "${srcdir}/${_realname}-${pkgver}"
-
- # install module in vendor directories.
+ cd DBI-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "${srcdir}/${_realname}-${pkgver}"
+ cd DBI-$pkgver
make test
}
package() {
- cd "${srcdir}/${_realname}-${pkgver}"
- make install DESTDIR="${pkgdir}"
+ 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;
}
-
-# vim: ts=2 sw=2 et ft=sh