mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 12:26:50 +02:00
45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=perl-test-simple
|
|
pkgver=1.302209
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=Test-Simple
|
|
pkgdesc="Basic utilities for writing tests"
|
|
url="https://metacpan.org/release/Test-Simple/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
source="https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Test-Simple-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
|
|
|
# perl-test-simple 1.302200 now includes perl-test2-suite
|
|
# https://metacpan.org/release/EXODIST/Test-Simple-1.302200
|
|
provides="perl-test2-suite=$pkgver-r$pkgrel"
|
|
replaces="perl-test2-suite"
|
|
|
|
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
|
|
|
|
# prevent conflict with main/perl
|
|
rm -rf "$pkgdir"/usr/share/man
|
|
}
|
|
|
|
sha512sums="
|
|
6f5e701cb47ba9d9f3bc70be9d5f1c6d3fa1f934bcfffc4a73a433e2c34eec240a4651e62d38c61b0a928796a9c066dfa530aaac56b55ae2cf795003bcca75aa Test-Simple-1.302209.tar.gz
|
|
"
|