diff options
author | John D Jones III | 2016-04-23 12:57:43 -0600 |
---|---|---|
committer | John D Jones III | 2016-04-23 12:57:43 -0600 |
commit | 844e79d26ba58dbd123358f3a569b1b6c4a0ec4a (patch) | |
tree | fc1eb81e0e4efdb01e85b37ed28aee328c098da1 | |
download | aur-perl-data-swap.tar.gz |
Readd ths
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d4fc224d5a4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Sat Apr 23 18:57:28 UTC 2016 +pkgbase = perl-data-swap + pkgdesc = Swap type and contents of variables + pkgver = 0.08 + pkgrel = 1 + url = https://metacpan.org/release/Data-Swap + arch = i686 + arch = x86_64 + license = PerlArtistic + license = GPL + depends = perl + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/X/XM/XMATH/Data-Swap-0.08.tar.gz + md5sums = 928f846eec31c421e0e877f1f381c917 + sha512sums = 21212e914f28609fdb8d607ce1b1f582cffcf2da2766e7a9f423f010ad3d2c77baba36a1e79abccd842d8668cbf25278e29cfcad909f20cb6b247e3572ea3713 + +pkgname = perl-data-swap + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a025b149f6dd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com> +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname='perl-data-swap' +pkgver='0.08' +pkgrel='1' +pkgdesc="Swap type and contents of variables" +arch=('i686' 'x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +makedepends=() +url='https://metacpan.org/release/Data-Swap' +source=('http://search.cpan.org/CPAN/authors/id/X/XM/XMATH/Data-Swap-0.08.tar.gz') +md5sums=('928f846eec31c421e0e877f1f381c917') +sha512sums=('21212e914f28609fdb8d607ce1b1f582cffcf2da2766e7a9f423f010ad3d2c77baba36a1e79abccd842d8668cbf25278e29cfcad909f20cb6b247e3572ea3713') +_distdir="Data-Swap-0.08" + +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/$_distdir" + /usr/bin/perl Makefile.PL + make + ) +} + +check() { + cd "$srcdir/$_distdir" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) +} + +package() { + cd "$srcdir/$_distdir" + make install + + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |