1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +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.998
pkgrel=0
pkgdesc="Perl binding for Redis database"
url="https://metacpan.org/release/Redis/"
arch="noarch !armv7 !x86 !armhf" # perl-io-socket-timeout missing
license="Artistic-2.0"
depends="perl perl-io-socket-timeout perl-try-tiny"
makedepends="perl-module-build-tiny perl-module-build"
checkdepends="perl-test-tcp perl-test-deep perl-io-string perl-test-sharedfork 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="232f0e602f6165da426ff6ee6a531f81eea3491c0312dae2813bdb15ac34469f6621c7683d5bd6b2be0cdcc09edf3f1f19cc03c848d43d41e630fe1306f62268 Redis-1.998.tar.gz"