summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a8382c70ec215cf1b4b68f21ce86703bf2255ca (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# CPAN Name  : Jifty::DBI
# Contributor: Anton Leontiev <scileont /at/ gmail.com>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname=perl-jifty-dbi
pkgver=0.78
pkgrel=1
pkgdesc='An object-relational persistence framework for Jifty'
arch=('any')
url='https://metacpan.org/release/Jifty-DBI'
license=('GPL' 'PerlArtistic')

depends=(
	'perl' # provides 'perl-encode' 'perl-version'
	'perl-cache-simple-timedexpiry>=0.21'
	'perl-class-accessor'
	'perl-class-data-inheritable'
	'perl-class-returnvalue>=0.4'
	'perl-class-trigger>=0.12'
	'perl-clone'
	'perl-dbi'
	'perl-dbix-dbschema>=0.34'
	'perl-data-page>=2.0'
	'perl-datetime>=0.34'
	'perl-datetime-format-iso8601'
	'perl-datetime-format-strptime'
	'perl-exporter-lite'
	'perl-hash-merge'
	'perl-lingua-en-inflect'
	'perl-object-declare>=0.22'
	'perl-scalar-defer>=0.1'
	'perl-universal-require>=0.11')

checkdepends=('perl-test-warn' 'perl-dbd-sqlite')

optdepends=(
	'perl-cache-memcached: Memcached support'
	'perl-yaml: YAML filter'
	'perl-yaml-syck: YAML filter'
	'perl-time-duration: duration filter'
	'perl-time-duration-parse>=0.06: duration filter'
	'perl-uri: URI filter')

options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Jifty-DBI-0.78.tar.gz)
md5sums=('512027a847753c08383597e4dffbf1af')

sanitize() {
	unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
	export PERL_MM_USE_DEFAULT=1
}

build() {
	cd Jifty-DBI-0.78
	sanitize
	perl Makefile.PL --skipdeps INSTALLDIRS=vendor
	make
}

check() {
	cd Jifty-DBI-0.78
	sanitize
	make test
}

package() {
	cd Jifty-DBI-0.78
	sanitize
	make install DESTDIR="$pkgdir"
	find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete
}