summaryrefslogtreecommitdiff
path: root/perl-dbix-class/PKGBUILD
blob: b31e48ea190011629287a7edd02c42dc60a4b60a (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Maintainer: Erich Eckner <arch at eckner dot net>
# Generator : neuesPerlPaket (2187f3ca33d7c791f08a9ab8c3893497ec9caa377e13a9f4565f67f0abb693a7e3c3edb2792f2bae0865f195eb47b422ea736d98c72a803ee24cecfcdfa2829f)

pkgname='perl-dbix-class'
pkgver=0.082842
pkgrel=5
pkgdesc='Extensible and flexible object &lt;-&gt; relational mapper.'
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
makedepends=(
  'perl-dbd-sqlite>=1.29'
  'perl-extutils-makemaker>=6.59'
  'perl-file-temp>=0.22'
  'perl-package-stash>=0.28'
  'perl-test-deep>=0.101'
  'perl-test-exception>=0.31'
  'perl-test-simple>=0.94'
  'perl-test-warn>=0.21')
depends=(
  'perl>=5.36'
  'perl<5.37'
  'perl-class-accessor-grouped>=0.10012'
  'perl-class-c3-componentised>=1.0009'
  'perl-class-inspector>=1.24'
  'perl-config-any>=0.20'
  'perl-context-preserve>=0.01'
  'perl-data-dumper-concise>=2.020'
  'perl-dbi>=1.57'
  'perl-devel-globaldestruction>=0.09'
  'perl-hash-merge>=0.12'
  'perl-module-find>=0.07'
  'perl-moo>=2.000'
  'perl-mro-compat>=0.12'
  'perl-namespace-clean>=0.24'
  'perl-path-class>=0.18'
  'perl-scope-guard>=0.03'
  'perl-sql-abstract-classic>=1.91'
  'perl-sub-name>=0.04'
  'perl-text-balanced>=2.00'
  'perl-try-tiny>=0.07')
checkdepends=(
  'perl-class-dbi'
  'perl-class-dbi-plugin-deepabstractsearch'
  'perl-cpanel-json-xs'
  'perl-datetime'
  'perl-datetime-format-pg'
  'perl-datetime-format-mysql'
  'perl-datetime-format-sqlite'
  'perl-datetime-format-strptime'
  'perl-dbd-pg'
  'perl-getopt-long-descriptive'
  'perl-json-any'
  'perl-json-dwiw'
  'perl-math-base36'
  'perl-moose'
  'perl-moosex-types'
  'perl-moosex-types-json'
  'perl-moosex-types-loadableclass'
  'perl-moosex-types-path-class'
  'perl-sql-translator'
  'perl-text-csv'
  'perl-time-piece-mysql'
)
url='https://metacpan.org/release/DBIx-Class'
_distdir="DBIx-Class-${pkgver}"
source=("https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/${_distdir}.tar.gz")
sha512sums=('c8d7149536d5c4ebbfc866b0c143454ead37fda5ddb8fa43dfe2d56c2169be0fd8a46ec3b6c7cd22cb1c93504056d5803b5250ac151507ef4205fe53495e8f18')

build() {
  cd "${srcdir}/${_distdir}"

  # Setting these env variables overwrites any command-line-options we don't want...
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
    PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
    PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
    MODULEBUILDRC=/dev/null

  # If using Makefile.PL
  if [ -r Makefile.PL ]; then
    perl Makefile.PL
    make
  # If using Build.PL
  elif [ -r Build.PL ]; then
    perl Build.PL
    perl Build
  fi
}

check() {
  cd "${srcdir}/${_distdir}"

  # If using Makefile.PL
  if [ -r Makefile.PL ]; then
    make test
  # If using Build.PL
  elif [ -r Build.PL ]; then
    perl Build test
  fi
}

package() {
  cd "${srcdir}/${_distdir}"

  # If using Makefile.PL
  if [ -r Makefile.PL ]; then
    make install
  # If using Build.PL
  elif [ -r Build.PL ]; then
    perl Build install
  fi

  # remove perllocal.pod and .packlist
  find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}