summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-26 15:09:29 +0200
committerErich Eckner <git@eckner.net>2016-04-26 15:10:59 +0200
commit8a33ec776d4bcde98554c22f1b2394b02d144a4b (patch)
treec0b7d9c03ff71d2577f805d3094cca74e3e2c539
parenta96cc1040d8ddae19c44ff466e51f01fdcdcd0ac (diff)
downloadarchlinuxewe.git.save-8a33ec776d4bcde98554c22f1b2394b02d144a4b.tar.xz
perl-starlink-ast neu
-rw-r--r--perl-starlink-ast/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/perl-starlink-ast/PKGBUILD b/perl-starlink-ast/PKGBUILD
new file mode 100644
index 00000000..2f265b65
--- /dev/null
+++ b/perl-starlink-ast/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname='perl-starlink-ast'
+pkgver='1.05'
+pkgrel='1'
+pkgdesc='Interface to the Starlink AST library'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl' 'perl-astro-fits-cfitsio' 'perl-tk') # 'perl-tk-zinc')
+makedepends=('perl-test-deep' 'perl-test-number-delta' 'perl-module-build')
+url='https://metacpan.org/release/Starlink-AST'
+_distdir="Starlink-AST-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/T/TJ/TJENNESS/${_distdir}.tar.gz")
+sha512sums=('9f1353c139cbecad4b468dbac73d27af53784ed0979fcd6dcb57277e1eae0d1f0d32d18dc4cf8d072b86e0534759c979e386ade809f75b0866a6afe953f00b31')
+
+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
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: