summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-05-31 21:06:29 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-05-31 21:06:29 (GMT)
commitec4a64bd9b4bb2b336d7a0e192de7a76af96b4b3 (patch)
tree06cb97f06cd4e0c4e910553db8c66252f125be97 /abs/core
parente3d16bb4484d2d107bdab7ae83dff73142e1c2aa (diff)
downloadlinhes_pkgbuild-ec4a64bd9b4bb2b336d7a0e192de7a76af96b4b3.zip
linhes_pkgbuild-ec4a64bd9b4bb2b336d7a0e192de7a76af96b4b3.tar.gz
linhes_pkgbuild-ec4a64bd9b4bb2b336d7a0e192de7a76af96b4b3.tar.bz2
perl-dbd-sqlite: initial
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/perl_modules/perl-dbd-sqlite/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
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 <felixonmars@archlinux.org>
+
+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;
+}