diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-01 09:46:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-01 09:46:36 +0000 |
commit | 3501b73c3c4473da03b872eee669ea16fbd6336d (patch) | |
tree | 9b98e2c7f848634b2780810d66f53db8a58e0266 /testing | |
parent | 6b98bd68969eda3db631beb42ab04e8971476f67 (diff) | |
download | aports-3501b73c3c4473da03b872eee669ea16fbd6336d.tar.bz2 aports-3501b73c3c4473da03b872eee669ea16fbd6336d.tar.xz |
testing/perl-datetime-format-w3cdtf: new aport
DateTime::Format::W3CDTF perl module
http://search.cpan.org/dist/DateTime-Format-W3CDTF/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-datetime-format-w3cdtf/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-datetime-format-w3cdtf/APKBUILD b/testing/perl-datetime-format-w3cdtf/APKBUILD new file mode 100644 index 0000000000..a9acf1839c --- /dev/null +++ b/testing/perl-datetime-format-w3cdtf/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=perl-datetime-format-w3cdtf +pkgver=0.06 +pkgrel=0 +pkgdesc="DateTime::Format::W3CDTF perl module" +url="http://search.cpan.org/dist/DateTime-Format-W3CDTF/" +arch="noarch" +license="GPLv2 or Artistic" +depends="perl perl-datetime" +makedepends="perl-dev" +install="" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/G/GW/GWILLIAMS/DateTime-Format-W3CDTF-$pkgver.tar.gz" + +_builddir="$srcdir"/DateTime-Format-W3CDTF-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + make && make test || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="7eb2a90b78e7e2232eddbd6dd6758a23 DateTime-Format-W3CDTF-0.06.tar.gz" |