[arch-commits] Commit in perl-variable-magic/repos (4 files)
Sergej Pupykin
spupykin at archlinux.org
Thu Dec 25 12:59:29 UTC 2014
Date: Thursday, December 25, 2014 @ 13:59:28
Author: spupykin
Revision: 124548
archrelease: copy trunk to community-i686, community-x86_64
Added:
perl-variable-magic/repos/community-i686/
perl-variable-magic/repos/community-i686/PKGBUILD
(from rev 124547, perl-variable-magic/trunk/PKGBUILD)
perl-variable-magic/repos/community-x86_64/
perl-variable-magic/repos/community-x86_64/PKGBUILD
(from rev 124547, perl-variable-magic/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
Copied: perl-variable-magic/repos/community-i686/PKGBUILD (from rev 124547, perl-variable-magic/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2014-12-25 12:59:28 UTC (rev 124548)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname="perl-variable-magic"
+_cpanname="Variable-Magic"
+pkgver="0.54"
+pkgrel="1"
+pkgdesc="Associate user-defined magic to variables from Perl."
+arch=("i686" "x86_64")
+license=("PerlArtistic" "GPL")
+options=("!emptydirs")
+depends=("perl>=5.5.0")
+url="http://search.cpan.org/dist/$_cpanname"
+source=("http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_cpanname-$pkgver.tar.gz")
+sha1sums=('3f254afd1923f42585dd7c30fcc283165f2f178a')
+
+# Function to change to the working directory and set
+# environment variables to override undesired options.
+prepareEnvironment() {
+ cd "$srcdir/$_cpanname-$pkgver"
+ 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"
+}
+
+build() {
+ prepareEnvironment
+ /usr/bin/perl Makefile.PL
+ make
+}
+
+check() {
+ prepareEnvironment
+ make test
+}
+
+package() {
+ prepareEnvironment
+ make install
+
+ # Remove "perllocal.pod" and ".packlist".
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
Copied: perl-variable-magic/repos/community-x86_64/PKGBUILD (from rev 124547, perl-variable-magic/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2014-12-25 12:59:28 UTC (rev 124548)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname="perl-variable-magic"
+_cpanname="Variable-Magic"
+pkgver="0.54"
+pkgrel="1"
+pkgdesc="Associate user-defined magic to variables from Perl."
+arch=("i686" "x86_64")
+license=("PerlArtistic" "GPL")
+options=("!emptydirs")
+depends=("perl>=5.5.0")
+url="http://search.cpan.org/dist/$_cpanname"
+source=("http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_cpanname-$pkgver.tar.gz")
+sha1sums=('3f254afd1923f42585dd7c30fcc283165f2f178a')
+
+# Function to change to the working directory and set
+# environment variables to override undesired options.
+prepareEnvironment() {
+ cd "$srcdir/$_cpanname-$pkgver"
+ 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"
+}
+
+build() {
+ prepareEnvironment
+ /usr/bin/perl Makefile.PL
+ make
+}
+
+check() {
+ prepareEnvironment
+ make test
+}
+
+package() {
+ prepareEnvironment
+ make install
+
+ # Remove "perllocal.pod" and ".packlist".
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
More information about the arch-commits
mailing list