archrelease: copy trunk to community-any
[ArchLinux/community.git] / perl-datetime-calendar-julian / trunk / PKGBUILD
blobbaab6dcff38b775d65d82752b4b24373517dc25f
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname='perl-datetime-calendar-julian'
4 _dist=DateTime-Calendar-Julian
5 pkgver=0.107
6 pkgrel=1
7 pkgdesc="Perl module for Dates in the Julian calendar"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-datetime')
12 makedepends=()
13 url="https://metacpan.org/release/${_dist}"
14 source=(https://search.cpan.org/CPAN/authors/id/W/WY/WYANT/${_dist}-${pkgver}.tar.gz)
15 sha256sums=('fcb2b424844bb13bcad46b1c7aa239b5a09bab2556f53bd1f27fad90c260d33d')
17 build() {
18     cd "${srcdir}/${_dist}-${pkgver}"
19     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
20     export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
21     perl Makefile.PL
22     make
25 check() {
26     cd "${srcdir}/${_dist}-${pkgver}"
27     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
28     export PERL_MM_USE_DEFAULT=1
29     make test
32 package() {
33     cd "${srcdir}/${_dist}-${pkgver}"
34     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
35     make install INSTALLDIRS=vendor DESTDIR="$pkgdir"