summaryrefslogtreecommitdiff
path: root/extra/perl-dbi/PKGBUILD
blob: 42f7a57708c1717ab11ff1eb29593f39d8f3f20d (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 124915 2011-05-25 07:47:08Z foutrelis $
# Maintainer: kevin <kevin@archlinux.org>
# Contributor:  Matt Thompson <mattt@defunct.ca>

pkgname=perl-dbi
_realname=DBI
pkgver=1.616
pkgrel=2
pkgdesc="Database independent interface for Perl"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.12.1')
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/T/TI/TIMB/${_realname}-${pkgver}.tar.gz)
md5sums=('799313e54a693beb635b47918458f7c4')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"

  # install module in vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
  make test
}

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

# vim: ts=2 sw=2 et ft=sh