aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-redis/APKBUILD
blob: e84e7aa5bb162462d791445574aebcfd8db79465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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"