Commit dd391e11 authored by Michael Pirogov's avatar Michael Pirogov Committed by Milan P. Stanić
Browse files

testing/perl-redis: new aport

parent 9c43ccd5
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=perl-redis
_pkgreal=Redis
pkgver=1.995
pkgrel=0
pkgdesc="Perl binding for Redis database"
url="https://metacpan.org/release/Redis/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-try-tiny perl-io-socket-timeout"
makedepends="perl-dev perl-module-build-tiny"
checkdepends="perl-test-tcp perl-test-sharedfork perl-test-fatal perl-test-deep perl-io-string"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAMS/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
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="2788017f7e89eb2a074d0c8bfa27dce28504a11ae398c4d69612a06d1a96cae9efbc5626871082aff48355373ed4b27dd703983b314e2467be46b79d48346f02 Redis-1.995.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment