summaryrefslogblamecommitdiff
path: root/system/perl-json/APKBUILD
blob: e3ce567bbf2e375262b0513faeb2f0bd19c7e272 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         
                                                                   

                 


                               
           

                                                         
                                       

                                           

              
                          
                                                                                        


                                    




                                                                 



                 




                                                  
                                                                                                                                                               
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-json
_pkgreal=JSON
_author=ISHIGAKI
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=4.02
pkgrel=0
pkgdesc="Perl module implementing a JSON encoder/decoder"
url="https://metacpan.org/release/JSON"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	make test
}

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

sha512sums="4af44478cd1dac1755768e5211fe86f0086150157393ff2075def7cf6a394fe11e8e35f369f2abc0470373efc8021e941c59ace9a92dfcd50740f924c747d95a  JSON-4.02.tar.gz"