summaryrefslogtreecommitdiffstats
path: root/base/p5-date-manip/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-06-13 02:02:42 +0200
committersibel <lesibel at free dot fr>2010-06-13 02:02:42 +0200
commit84aefec256b0203d88da2998154c1018215353ee (patch)
treea301027422fdcfea8af9c9f03277ac35d3293b22 /base/p5-date-manip/Pkgfile
parent427aa76fc6ca8fb0902d4234c2efe16fc361d9d4 (diff)
downloadnutyx-extra-84aefec256b0203d88da2998154c1018215353ee.tar.gz
nutyx-extra-84aefec256b0203d88da2998154c1018215353ee.tar.bz2
nutyx-extra-84aefec256b0203d88da2998154c1018215353ee.tar.xz
nutyx-extra-84aefec256b0203d88da2998154c1018215353ee.zip
p5-date-manip, ajout du Pkgfile
Diffstat (limited to 'base/p5-date-manip/Pkgfile')
-rw-r--r--base/p5-date-manip/Pkgfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/base/p5-date-manip/Pkgfile b/base/p5-date-manip/Pkgfile
new file mode 100644
index 000000000..5ca82add0
--- /dev/null
+++ b/base/p5-date-manip/Pkgfile
@@ -0,0 +1,31 @@
+# Description: Perl date manip
+# URL: http://search.cpan.org/~sbeck/Date-Manip-5.48/Manip.pod
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+
+name=p5-date-manip
+version=6.07
+release=1
+source=(http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/Date-Manip-$version.tar.gz)
+
+
+build() {
+ cd Date-Manip-$version
+
+ perl Makefile.PL
+ make OPTIMIZE="$CFLAGS"
+ make install DESTDIR=$PKG
+
+ # Remove perlcrap
+ find $PKG \
+ -name .packlist -or \
+ -name '*.bs' -or \
+ -name autosplit.ix -or \
+ -name perllocal.pod | xargs rm
+
+ # Remove empty directories
+ find $PKG -depth -empty -exec rm -rf {} \;
+
+ chown -R root:root $PKG
+
+}