diff options
author | Erich Eckner <git@eckner.net> | 2016-04-08 14:08:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-11 11:29:20 +0200 |
commit | 7dad3da60c4531d21ce541f10d73e02ee852f73c (patch) | |
tree | 89cce967b8c38834d5436d7a2f8c774f60af9adb /perl-astro-fits-header/PKGBUILD | |
parent | cdb20ef3f0cb5d2610246dfda1ee0529fc7d9076 (diff) | |
download | archlinuxewe-7dad3da60c4531d21ce541f10d73e02ee852f73c.tar.xz |
perl-astro-fits-header neu
Diffstat (limited to 'perl-astro-fits-header/PKGBUILD')
-rw-r--r-- | perl-astro-fits-header/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/perl-astro-fits-header/PKGBUILD b/perl-astro-fits-header/PKGBUILD new file mode 100644 index 000000000..9d8e11920 --- /dev/null +++ b/perl-astro-fits-header/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=perl-astro-fits-header +_pkgname='Astro-FITS-Header' +pkgver=3.07 +pkgrel=1 +pkgdesc="Object Orientated interface to FITS HDUs" +arch=('x86_64' 'i686') +url="http://pdl.perl.org/" +license=('GPL' 'PerlArtistic') +depends=('perl') +makedepends=() +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_pkgname}-${pkgver}.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}/${_pkgname}-${pkgver}" + perl Build.PL + perl Build + ) +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + perl Build test + ) +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + perl Build install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} |