mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
https://metacpan.org/release/Protocol-Redis/ Redis protocol parser/encoder with asynchronous capabilities
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=perl-protocol-redis
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Protocol-Redis
|
|
pkgver=1.0011
|
|
pkgrel=0
|
|
pkgdesc="Redis protocol parser/encoder with asynchronous capabilities"
|
|
url="https://metacpan.org/release/Protocol-Redis/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/U/UN/UNDEF/Protocol-Redis-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd "$pkgdir"
|
|
# introduces a circular dependency on perl-protocol-redis-faster
|
|
rm -v usr/share/perl5/vendor_perl/Protocol/benchmark.pl
|
|
}
|
|
|
|
sha512sums="
|
|
43e4a05698fe0cc0ceff0b4b7fc81dc2320bbab1ca7933c26cad5ea7caa4b930665c135f604406d192bd2d49bb804eb2bd5e2015960e5dea73e1cbcbbc86980a Protocol-Redis-1.0011.tar.gz
|
|
"
|