diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9f62367401dc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = perl-date-pcalc + pkgdesc = Gregorian calendar date calculations + pkgver = 6.1 + pkgrel = 1 + url = http://search.cpan.org/dist/Date-Pcalc + arch = i686 + arch = x86_64 + license = PerlArtistic + license = GPL + depends = perl-bit-vector>=7.1 + depends = perl-carp-clan>=5.3 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Pcalc-6.1.tar.gz + md5sums = 6a719d8fe10ac673be5d09e003130aa8 + sha512sums = 3f234e505f068e068608e76f5963f85172c1b04b5770d24d33bff704b2a50f1e4f222cfdf2cc5a992e618078f0bf018838278db2cd00e8037bdb2482eb0907c2 + +pkgname = perl-date-pcalc + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..abe0aea125fc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com> +# Generator : CPANPLUS::Dist::Arch 1.25 + +pkgname='perl-date-pcalc' +pkgver='6.1' +pkgrel='1' +pkgdesc="Gregorian calendar date calculations" +arch=('i686' 'x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl-bit-vector>=7.1' 'perl-carp-clan>=5.3') +makedepends=() +url='http://search.cpan.org/dist/Date-Pcalc' +source=('http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Pcalc-6.1.tar.gz') +md5sums=('6a719d8fe10ac673be5d09e003130aa8') +sha512sums=('3f234e505f068e068608e76f5963f85172c1b04b5770d24d33bff704b2a50f1e4f222cfdf2cc5a992e618078f0bf018838278db2cd00e8037bdb2482eb0907c2') +_distdir="Date-Pcalc-6.1" + +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: |