summaryrefslogtreecommitdiff
path: root/libre/perl-json-any/PKGBUILD
blob: ca37b957b641a65e4293c792c06fa79f8f597571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
}