summaryrefslogtreecommitdiff
path: root/pcr/perl-date-simple
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-01 04:11:20 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-05-01 04:11:20 -0300
commit6cbb4856878cd40a98b794d44c499ce24919ba9f (patch)
tree2519e02c824ebe19f49bca9c9e45c7d8542af72a /pcr/perl-date-simple
parentb9c634c914000edcc3faba77b668a883582c386c (diff)
downloadabslibre-6cbb4856878cd40a98b794d44c499ce24919ba9f.tar.gz
abslibre-6cbb4856878cd40a98b794d44c499ce24919ba9f.tar.bz2
abslibre-6cbb4856878cd40a98b794d44c499ce24919ba9f.zip
add and update perl-* packages
Diffstat (limited to 'pcr/perl-date-simple')
-rw-r--r--pcr/perl-date-simple/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/perl-date-simple/PKGBUILD b/pcr/perl-date-simple/PKGBUILD
new file mode 100644
index 000000000..2912557f7
--- /dev/null
+++ b/pcr/perl-date-simple/PKGBUILD
@@ -0,0 +1,43 @@
+# Contributor (Arch): Andreas dot Wagner at em dot uni-frankfurt dot de
+# Contributor : Márcio Silva <coadde@parabola.nu>
+
+pkgname='perl-date-simple'
+_perlname='Date-Simple'
+pkgver='3.03'
+pkgrel='2'
+pkgdesc="A simple date object"
+arch=('any')
+url='http://search.cpan.org/~izut/Date-Simple'
+license=('GPL2')
+depends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/I/IZ/IZUT/${_perlname}-${pkgver}.tar.gz")
+
+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}/${_perlname}-${pkgver}"
+ perl Makefile.PL
+ make
+}
+
+test(){
+ cd "${srcdir}/${_perlname}-${pkgver}"
+ make test
+}
+
+package() {
+ 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}/${_perlname}-${pkgver}"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+
+md5sums=('436049dc2c7dfd8423d8bcc807248b31')