From ec4a64bd9b4bb2b336d7a0e192de7a76af96b4b3 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 31 May 2018 21:06:29 +0000 Subject: perl-dbd-sqlite: initial --- abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD diff --git a/abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD b/abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD new file mode 100644 index 0000000..b8137e2 --- /dev/null +++ b/abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Felix Yan + +pkgname=perl-dbd-sqlite +pkgver=1.58 +pkgrel=1 +pkgdesc="Self-contained RDBMS in a DBI driver" +arch=('x86_64') +url="http://search.cpan.org/dist/DBD-SQLite" +license=('GPL' 'PerlArtistic') +depends=('perl-dbi' 'sqlite') +source=(http://www.cpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-${pkgver}.tar.gz) +sha512sums=('080d1e304fb0d43926ce0345df3367132c317ba113bdc11952c0a159bc68d988a024828a28e66be267f82e07731dee225723854fb80914ba7c476b27dbdeb212') + +build() { + cd DBD-SQLite-${pkgver} + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd DBD-SQLite-${pkgver} + make test +} + +package() { + cd DBD-SQLite-${pkgver} + make install DESTDIR="${pkgdir}" + +# 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; +} -- cgit v0.12