summaryrefslogtreecommitdiff
path: root/perl-astro-fits-header/PKGBUILD
blob: 56e1ba0c74321f20adbf34ab5c86816bbc2d6221 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-astro-fits-header
_pkgname='Astro-FITS-Header'
pkgver=3.07
pkgrel=9
pkgdesc="Object Orientated interface to FITS HDUs"
arch=('any')
depends=(
  'perl>=5.32'
  'perl<5.33'
)
url="http://pdl.perl.org/"
license=('GPL' 'PerlArtistic')
provides=(
  'perl-astro-fits-header-ast=3.01'
  'perl-astro-fits-header-cfitsio=3.02'
  'perl-astro-fits-headercollection=3.01'
  'perl-astro-fits-header-gsd=3.01'
  'perl-astro-fits-header-item=3.02'
  'perl-astro-fits-header-ndf=3.02')
makedepends=(
  'perl-module-build>=0.3'
  'perl-test-simple')
optdepends=(
  'perl-astro-fits-cfitsio'
  'perl-starlink-ast')
checkdepends=(
  'perl-starlink-ast'
  'perl-astro-fits-cfitsio'
#  'perl-gsd'
#  'perl-ndf'
)
options=('!emptydirs')
_distdir="${_pkgname}-${pkgver}"
source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_distdir}.tar.gz")
sha256sums=('530d59ef0c0935f9862d187187a2d7583b12c639bb67db14f983322b161892d9')

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}"
    perl Build.PL
    perl Build
  )
}

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

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