summaryrefslogtreecommitdiff
path: root/repo/perl-json/perl-json.xibuild
blob: 6791825ee9e14f7a4d9e7936a85e5180674e7784 (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
#!/bin/sh

NAME="perl-json"
DESC="Perl module implementing a JSON encoder/decoder"

MAKEDEPS=""

PKG_VER=4.05
SOURCE="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-$PKG_VER.tar.gz"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$PKG_DEST" install
	find "$PKG_DEST" -name perllocal.pod -delete
	find "$PKG_DEST" -name .packlist -delete
}