diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/perl-json-xs/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-json-xs/APKBUILD b/user/perl-json-xs/APKBUILD new file mode 100644 index 000000000..75f0720ce --- /dev/null +++ b/user/perl-json-xs/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Dan Theisen <djt@hxx.in> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-json-xs +pkgver=3.04 +pkgrel=0 +pkgdesc="JSON serialising/deserialising, done correctly and fast" +url="https://metacpan.org/pod/JSON::XS" +arch="all" +license="Artistic-1.0-Perl AND GPL-2.0" +depends="perl perl-common-sense perl-types-serialiser" +makedepends="perl-dev perl-canary-stability" +install="" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz" +builddir="$srcdir/JSON-XS-$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 -o -name .packlist \) -delete +} + +sha512sums="69c2e199385b5b5e331d905b64805304de80e1a3b393acaf7dce21c45254b1f23f1a83b246dcd3a80c2cfdadaf8ce3634ee587c469629cb69106f0c2239c73db JSON-XS-3.04.tar.gz" |