summaryrefslogtreecommitdiff
path: root/perl-dbm-deep/PKGBUILD
blob: d5ed1f899ae0a0d112e112ef32af8a6254f7de9b (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# CPAN Name  : DBM::Deep
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator  : CPANPLUS::Dist::Arch 1.30
# Maintainer : Erich Eckner <arch at eckner dot net>

pkgname=perl-dbm-deep
pkgver=2.0014
pkgrel=7
pkgdesc='A pure Perl multi-level hash/array DBM that supports transactions'
arch=('any')
url='https://metacpan.org/release/DBM-Deep'
license=('PerlArtistic' 'GPL')
provides=(
  'perl-dbm-deep-array=2.0014'
  'perl-dbm-deep-engine-dbi=2.0014'
  'perl-dbm-deep-engine-file=2.0014'
  'perl-dbm-deep-engine=2.0014'
  'perl-dbm-deep-hash=2.0014'
  'perl-dbm-deep-iterator-dbi=2.0014'
  'perl-dbm-deep-iterator-file-bucketlist=2.0014'
  'perl-dbm-deep-iterator-file-index=2.0014'
  'perl-dbm-deep-iterator-file=2.0014'
  'perl-dbm-deep-iterator=2.0014'
  'perl-dbm-deep-null=2.0014'
  'perl-dbm-deep-sector-dbi-reference=2.0014'
  'perl-dbm-deep-sector-dbi-scalar=2.0014'
  'perl-dbm-deep-sector-dbi=2.0014'
  'perl-dbm-deep-sector-file-bucketlist=2.0014'
  'perl-dbm-deep-sector-file-data=2.0014'
  'perl-dbm-deep-sector-file-index=2.0014'
  'perl-dbm-deep-sector-file-null=2.0014'
  'perl-dbm-deep-sector-file-reference=2.0014'
  'perl-dbm-deep-sector-file-scalar=2.0014'
  'perl-dbm-deep-sector-file=2.0014'
  'perl-dbm-deep-sector=2.0014'
  'perl-dbm-deep-storage-dbi=2.0014'
  'perl-dbm-deep-storage-file=2.0014'
  'perl-dbm-deep-storage=2.0014')
depends=(
  'perl>=5.34'
  'perl<5.35'
  'perl-digest-md5>=1.00'
  'perl-scalar-list-utils>=1.14'
  'perl>=5.8.4')
makedepends=(
  'perl-file-path>=0.01'
  'perl-file-temp>=0.01'
  'perl-module-build>=0.42'
  'perl-pod-usage>=1.3'
  'perl-test-deep>=0.095'
  'perl-test-exception>=0.21'
  'perl-test-simple>=0.88'
  'perl-test-warn>=0.08')
checkdepends=(
  'perl-dbd-sqlite'
  'perl-dbd-mysql'
  'perl-filehandle-fmode'
  'perl-test-deep'
  'perl-test-exception'
  'perl-test-pod'
  'perl-test-pod-coverage'
  'perl-test-warn'
)
_distdir="DBM-Deep-${pkgver}"
source=("http://search.cpan.org/CPAN/authors/id/R/RK/RKINYON/${_distdir}.tar.gz")
options=(!emptydirs)
sha512sums=('4f7ccc4401d5b21dcf0a8153bd31ed17b5897bdc798463785cd29534c6a2e9457407736d5ab21d0ac69397d9dd2f71b9c8da61829822e2f8ad0b81460110ddae')

prepare() {
	rm -f "$srcdir/$_distdir/t/39_singletons.t"
}

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

build() {
	cd ${_distdir}
	sanitize
	perl Build.PL --installdirs vendor --destdir "$pkgdir"
	perl Build
}

check() {
	cd ${_distdir}
	sanitize
	perl Build test
}

package() {
	cd ${_distdir}
	sanitize
	perl Build install
	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}