summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f79681a380828f1806e33553b2ad79292b6384cf (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
# Maintainer: Bruno Dupuis <lisael@lisael.org>
# Contributor: Jan Tojnar <jtojnar@gmail.com>
pkgname=perl-app-sqitch
pkgver=0.9996
pkgrel=1
pkgdesc='Sane database change management'
_dist=App-Sqitch
arch=('any')
url="http://sqitch.org/"
license=('MIT')
depends=(
    'perl-clone'
    'perl-config-gitlike>=1.11'
    'perl-datetime'
    'perl-datetime-timezone'
    'perl-dbi'
    'perl-devel-stacktrace'
    'perl-encode-locale'
    'perl-file-homedir'
    'perl-hash-merge'
    'perl-libintl-perl'
    'perl-io-pager'
    'perl-ipc-run3'
    'perl-ipc-system-simple'
    'perl-list-moreutils'
    'perl-moo>=1.002000'
    'perl-namespace-autoclean>=0.16'
    'perl-path-class>=0.33'
    'perl-perlio-utf8-strict'
    'perl-string-formatter'
    'perl-string-shellquote'
    'perl-sub-exporter'
    'perl-template-tiny'
    'perl-throwable>=0.200009'
    'perl-try-tiny'
    'perl-type-tiny'
    'perl-type-tiny-xs'
    'perl-uri-db'
    'perl-uri'
    'perl>=5.11.0'
    'perl-module-install'
)

checkdepends=(
    'perl-capture-tiny'
    'perl-test-deep'
    'perl-test-file'
    'perl-test-mockmodule'
    'perl-test-nowarnings'
    'perl-test-dir'
    'perl-test-file-contents'
)

optdepends=(
    'perl-dbd-pg: PostgreSQL support'
    'perl-dbd-sqlite: SQLite support'
    'perl-dbd-mysql: MySQL support'
    'perl-dbd-firebird: Firebird support'
)

options=('!emptydirs' purge)
source=("http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/$_dist-$pkgver.tar.gz")
sha512sums=('f9f34afdf8ae8c9284c17875da250bf8888d93451235a693a531bb8dd2aed4a0280596f4e0d14eb9bbffcac3c59820c7fbb14778080edf94d2de1bc1877b5c2c')

build() {
    cd "$srcdir/$_dist-$pkgver"
    unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
    export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
    /usr/bin/perl Build.PL
    ./Build
}

check() {
    cd "$srcdir/$_dist-$pkgver"
    unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
    export PERL_MM_USE_DEFAULT=1
    ./Build test
}

package() {
    cd "$srcdir/$_dist-$pkgver"
    unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
    ./Build install --installdirs=vendor --destdir="$pkgdir"
}