summaryrefslogtreecommitdiff
path: root/testing/perl-dbd-sqlite/PKGBUILD
blob: 907a7b46ffab3d6b799d59d5e01d5e60e15a6288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 159879 2012-05-27 07:43:07Z bluewind $
# Contributor: Tom Killian <tomk@runbox.com>
# Contributor: francois at archlinux dot org

pkgname=perl-dbd-sqlite
_cpanname=DBD-SQLite
pkgver=1.35
pkgrel=2
pkgdesc="Self-contained RDBMS in a DBI driver"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/${_cpanname}"
license=('GPL' 'PerlArtistic')
depends=('perl-dbi>=1.61' 'sqlite')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/A/AD/ADAMK/${_cpanname}-${pkgver}.tar.gz)
md5sums=('d9752e4a26fa54e74aa893dafd02ceda')

build() {
  cd "${srcdir}/${_cpanname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/${_cpanname}-${pkgver}"
  make test
}

package() {
  cd "${srcdir}/${_cpanname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}