blob: 2edb517543f97ae93b3b24a774bbbc68c893df81 (
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
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-json
_pkgreal=JSON
pkgver=2.97000
pkgrel=0
pkgdesc="Perl module implementing a JSON encoder/decoder"
url="http://search.cpan.org/dist/JSON/"
arch="noarch"
license="GPL PerlArtistic"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}
sha512sums="7f11faa7a27fdaef65e252f3d7e7625108df733d0f49b4175fec8d71b5222de8c2deceb615bdce4d00bde20591dfb1f2a80f2b881cba50f1092933de255be0fa JSON-2.97000.tar.gz"
|