diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-23 23:08:10 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-11-23 23:08:10 -0300 |
commit | ef4e9ed3ff6e39e8008309d86855b47f28b6ed05 (patch) | |
tree | bc2ab6eb8722bde253f8df89e44c0e3393058a3c /libre/perl-json-any | |
parent | 7c8320126452d1468923212b786430dfb992f1f6 (diff) | |
download | abslibre-ef4e9ed3ff6e39e8008309d86855b47f28b6ed05.tar.gz abslibre-ef4e9ed3ff6e39e8008309d86855b47f28b6ed05.tar.bz2 abslibre-ef4e9ed3ff6e39e8008309d86855b47f28b6ed05.zip |
perl-json-any: add new package to [libre] -> https://labs.parabola.nu/issues/873
Diffstat (limited to 'libre/perl-json-any')
-rw-r--r-- | libre/perl-json-any/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/libre/perl-json-any/PKGBUILD b/libre/perl-json-any/PKGBUILD new file mode 100644 index 000000000..ca37b957b --- /dev/null +++ b/libre/perl-json-any/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Johannes Löthberg <johannes@kyriasis.com> +# Contributor: Moritz Bunkus <moritz@bunkus.org> + +pkgname=perl-json-any +pkgver=1.39 +pkgrel=2.parabola1 + +pkgdesc="(DEPRECATED) Wrapper Class for the various JSON classes, without nonfree perl-yaml-syck support" +url='http://search.cpan.org/dist/JSON-Any' +arch=('any') +license=('GPL' 'PerlArtistic') + +depends=('perl-json>=2.02' 'perl-json-xs>=2.3' 'perl-namespace-clean') +makedepends=('perl-test-fatal' 'perl-test-requires' 'perl-test-warnings>=0.009' 'perl-test-without-module') + +source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/JSON-Any-$pkgver.tar.gz") + +sha1sums=('2c7e404fc4a398359693d62e9c74994f9273dd4c') + +options=('!emptydirs') + +build() { + cd JSON-Any-"$pkgver" + + # 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="" PERL_MB_OPT="" MODULEBUILDRC=/dev/null + + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd JSON-Any-"$pkgver" + make test +} + +package() { + cd JSON-Any-"$pkgver" + make install DESTDIR="$pkgdir" + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} |