summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-datetime-format-w3cdtf/PKGBUILD
blob: 105312c7beaa672d4ba95568eb345df5666b7ded (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
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-datetime-format-w3cdtf
pkgver=0.07
pkgrel=2
pkgdesc="Parse and format W3CDTF datetime strings"
arch=('any')
url="http://search.cpan.org/dist/DateTime-Format-W3CDTF"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-datetime')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/G/GW/GWILLIAMS/DateTime-Format-W3CDTF-$pkgver.tar.gz)
sha256sums=('69a02b661bbf1daa14a4813cb6786eaa66dbdf2743f0b3f458e30234c3a26268')

build() {
  cd  "$srcdir"/DateTime-Format-W3CDTF-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/DateTime-Format-W3CDTF-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}