mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
main/perl-json-maybexs: upgraded to 1.003010. Modernize APKBUILD
This commit is contained in:
parent
cbb12439ba
commit
b13c14c3a6
@ -2,7 +2,7 @@
|
|||||||
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
||||||
pkgname=perl-json-maybexs
|
pkgname=perl-json-maybexs
|
||||||
_pkgreal=JSON-MaybeXS
|
_pkgreal=JSON-MaybeXS
|
||||||
pkgver=1.003009
|
pkgver=1.003010
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>"
|
pkgdesc="Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>"
|
||||||
url="http://search.cpan.org/dist/JSON-MaybeXS/"
|
url="http://search.cpan.org/dist/JSON-MaybeXS/"
|
||||||
@ -13,26 +13,31 @@ cpanmakedepends=" perl-test-without-module "
|
|||||||
depends="$cpandepends"
|
depends="$cpandepends"
|
||||||
makedepends="perl-dev $cpanmakedepends"
|
makedepends="perl-dev $cpanmakedepends"
|
||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
|
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_pkgreal-$pkgver.tar.gz"
|
||||||
|
|
||||||
_builddir="$srcdir/$_pkgreal-$pkgver"
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
|
||||||
make && make test
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="a8606ccaac749650004d70bd5d6219fb18f66c4c86f720bbec3daf21a15bacd17d308c2a394fb1c9f6584be4d7c519cbc8653bdf5c7c7fa4129b75261645d8e3 JSON-MaybeXS-1.003009.tar.gz"
|
sha512sums="c176a5e5a153f73c12b2251b3b910a427e6872956e4b19973528f7ccf72a342ef21e01a19b339021a2efbabd2b745fed351973e176d98795059e54ab9ee0fc52 JSON-MaybeXS-1.003010.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user