summaryrefslogtreecommitdiff
path: root/perl-date-timeofday
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-12-16 23:36:53 +0100
committerErich Eckner <git@eckner.net>2018-12-29 14:25:21 +0100
commit68d93589b0c671274c5d6cc09b2379f136f930e3 (patch)
tree16724f2c34acbfe290833bc794e4aff93d28649a /perl-date-timeofday
parent2f481df0710b792c743083756571a32728c08067 (diff)
downloadarchlinuxewe-68d93589b0c671274c5d6cc09b2379f136f930e3.tar.xz
perl-date-timeofday neu
Diffstat (limited to 'perl-date-timeofday')
-rw-r--r--perl-date-timeofday/PKGBUILD74
1 files changed, 74 insertions, 0 deletions
diff --git a/perl-date-timeofday/PKGBUILD b/perl-date-timeofday/PKGBUILD
new file mode 100644
index 000000000..0b9deb4fd
--- /dev/null
+++ b/perl-date-timeofday/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (568f5d2df596725567f1a6081bf01d21ef231fbfd3571a4132eb004ebb50cfaada248486250b351491d5fd615f2c1d7f07d339c6e6ad8bb59146399a117bec0c)
+
+pkgname='perl-date-timeofday'
+pkgver='0.003'
+pkgrel='1'
+pkgdesc='Represent time of day (hh:mm:ss)'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.10.1'
+ 'perl-time-hires'
+ 'perl-time-local'
+)
+makedepends=(
+ 'perl'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-exception'
+ 'perl-test-simple>=0.98'
+)
+url='https://metacpan.org/release/Date-TimeOfDay'
+_distdir="Date-TimeOfDay-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/${_distdir}.tar.gz")
+sha512sums=('4cae579863c9dc30b93e2b3a406cb8b0a2e24045543629eb3689af9e9d95f14a0f0951b138a21c54035b1472a04bfa32a19375a49f053c5369add24db8a58b8a')
+
+build() {
+ cd "${srcdir}/${_distdir}"
+
+ # Setting these env variables overwrites any command-line-options we don't want...
+ export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
+ MODULEBUILDRC=/dev/null
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build.PL
+ perl Build
+ fi
+}
+
+check() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build test
+ fi
+}
+
+package() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make install
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build install
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}