aports/testing/perl-expect/APKBUILD
2025-04-19 18:57:07 +00:00

37 lines
1.1 KiB
Text

# Contributor: Wen Heping <wenheping2000@hotmail.com>
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
pkgname=perl-expect
pkgver=1.38
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Expect
pkgdesc="automate interactions with command line programs that expose a text terminal interface"
url="https://metacpan.org/release/Expect/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-io-tty"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JA/JACOBY/Expect-$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="
8dfaad3d471c848091696f9ab465b6ee6ffe16501bd0f4980f2a56df0fe7a12bdc62c47145b7c60c9a7ac90b56b7417bd20b695cea8e383f4da069a4f00ddd98 Expect-1.38.tar.gz
"