1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/testing/perl-redis/APKBUILD

35 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Michael Pirogov <vbnet.ru@gmail.com>
# Maintainer: Michael Pirogov <vbnet.ru@gmail.com>
pkgname=perl-redis
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Redis
pkgver=1.996
pkgrel=0
pkgdesc="Perl binding for Redis database"
url="https://metacpan.org/release/Redis/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-try-tiny perl-io-socket-timeout"
makedepends="perl-dev perl-module-build-tiny perl-module-build"
checkdepends="perl-test-sharedfork perl-test-deep perl-io-string perl-test-tcp perl-test-fatal"
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 Build.PL --installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="612eeb4f861412a0141ff6583839329d8dff512072a8d320b064859b5f6da30c1fca9bc474d0433f93abfb0470b021d7f834842652118929f51de9970090aca3 Redis-1.996.tar.gz"