summaryrefslogtreecommitdiff
path: root/perl-time-piece-mysql/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-06 23:01:53 +0200
committerErich Eckner <git@eckner.net>2017-09-06 23:01:53 +0200
commit2225e769ad8d945a9151084d1c87fefe2d0e0473 (patch)
tree215702aa77d8d39b193cc5b4833c45e7639ae40b /perl-time-piece-mysql/PKGBUILD
parentc17e669e14a7b76a8df52ecd10a586a52871f22f (diff)
downloadarchlinuxewe.git.save-2225e769ad8d945a9151084d1c87fefe2d0e0473.tar.xz
perl-time-piece-mysql neu
Diffstat (limited to 'perl-time-piece-mysql/PKGBUILD')
-rw-r--r--perl-time-piece-mysql/PKGBUILD65
1 files changed, 65 insertions, 0 deletions
diff --git a/perl-time-piece-mysql/PKGBUILD b/perl-time-piece-mysql/PKGBUILD
new file mode 100644
index 00000000..601cbd0a
--- /dev/null
+++ b/perl-time-piece-mysql/PKGBUILD
@@ -0,0 +1,65 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (1defbcf32afb33ec54a2b45a3b72b4d049f690f6dbc08511ad48f4db6f85a4ecd583a13fcec1172e0d3c1ca342a483beb851ba887d67450c25231cc0aafdf66b)
+
+pkgname='perl-time-piece-mysql'
+pkgver='0.06'
+pkgrel='1'
+pkgdesc='Adds MySQL-specific methods to Time::Piece'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl-test-simple>=0.47'
+ 'perl-time-piece>=1.03'
+)
+url='https://metacpan.org/release/Time-Piece-MySQL'
+_distdir="Time-Piece-MySQL-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/K/KA/KASEI/${_distdir}.tar.gz")
+sha512sums=('8f748b50a763dbe4b0a545d6bb96f9ccffa05da48461c0fac63e89ba6029856ac60b871264217b820408aefa2dd4fdcbba036f5ad6ad9281f6699e33003f36e4')
+
+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
+}