mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 00:42:03 +01:00
This fixes the build on riscv64, as it tries to autoinstall the Test::Most it deems missing due to tests being disabled on the riscv64 builder, which means checkdepends aren't installed. The alternative would involve patching Makefile.PL to remove the autoinstall directive, but it doesn't hurt to have perl-test-most in makedepends, so this is the solution being chosen for the moment.
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Celeste <cielesti@protonmail.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
pkgname=perl-uri-redis
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=URI-redis
|
|
pkgver=0.02
|
|
pkgrel=0
|
|
pkgdesc="URI for Redis connection info"
|
|
url="https://metacpan.org/release/URI-redis/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl perl-uri"
|
|
makedepends="perl-test-most"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/M/ME/MENDEL/URI-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
|
|
}
|
|
|
|
sha512sums="
|
|
7f9f62c8b6b3e00e02c45d5237fb3a4c33542be12a4f7cb31ae74711be66e7031d2daa5a18b2fe1c84554dcfee7db7901f8a9fcac4ba609e24dee33ab6253d9c URI-redis-0.02.tar.gz
|
|
"
|