summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0abc9f8a81f10c77742fa3798033d0689f00cb2 (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 : int <int [ate] arcor [dot] de>
# Contributor: John D Jones III <jnbek1972 -_AT_- g m a i l -_Dot_- com>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname='perl-sql-translator'
pkgver='1.65'
pkgrel='1'
pkgdesc="Perl/CPAN Module SQL::Translator: Manipulate structured data definitions (SQL and more)"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.8.1' 'perl-carp-clan>=0' 'perl-dbi>=1.54' 'perl-file-sharedir>=1.0' 'perl-json-maybexs>=1.003003' 'perl-moo>=1.000003' 'perl-package-variant>=1.001001' 'perl-parse-recdescent>=1.967009' 'perl-sub-quote>=0' 'perl-try-tiny>=0.04' 'perl-xml-writer>=0.500' 'perl-yaml>=0.66')
makedepends=()
checkdepends=('perl-test-differences' 'perl-test-exception>=0.42' 'perl-xml-libxml')
url='https://metacpan.org/release/SQL-Translator'
source=("http://search.cpan.org/CPAN/authors/id/V/VE/VEESH/SQL-Translator-$pkgver.tar.gz")
md5sums=('21ee9685b8d5a40b27b9613e0743cb86')
sha512sums=('f321edfb8a8c8ee2f5030b1dfed1c070b3e684790fe0193a6a164db304b242f1ca7680caef9359dbefc20bed3768c7d40880cf94bfe114c5e3f9e6c57a758d6f')
_distdir="SQL-Translator-$pkgver"

build() {
  ( 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/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$srcdir/$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$srcdir/$_distdir"
  make install

  find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: