blob: c5c47b211380eaa6a3c6dc1487e3a0aa52236007 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Moritz Bunkus <moritz@bunkus.org>
pkgname=perl-rose-db
pkgver="0.786"
pkgrel='1'
pkgdesc="A DBI wrapper and abstraction layer"
arch=(any)
license=('PerlArtistic')
url="http://search.cpan.org/dist/Rose-DB/"
depends=(
'perl'
'perl-bit-vector>=6.4'
'perl-clone-pp'
'perl-datetime'
'perl-datetime-format-mysql'
'perl-datetime-format-oracle'
'perl-datetime-format-pg>=0.11'
'perl-dbi'
'perl-rose-datetime>=0.532'
'perl-rose-object>=0.854'
'perl-sql-reservedwords'
'perl-time-clock'
)
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSIRACUSA/Rose-DB-${pkgver}.tar.gz)
sha512sums=('8bec1da9c19165c7cf9b2295244c7534e69f7ae9e092cf751675587d1be68f9aca20cae2cb1ccb5e00915ea8c52e686ed29a8462dc97b083fbcaa25fa77bdf9d')
prepare_environment() {
export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd "${srcdir}/Rose-DB-${pkgver}"
}
build() {
prepare_environment
/usr/bin/perl Makefile.PL
make
}
check() {
prepare_environment
make test
}
package() {
prepare_environment
make install
find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}
|