1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/perl-archive-any-lite: new aport

This commit is contained in:
Wen Heping 2025-07-09 23:25:35 +00:00 committed by Celeste
parent d1a5e9f0a0
commit 5d76046f68

View file

@ -0,0 +1,38 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-archive-any-lite
pkgver=0.11
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Archive-Any-Lite
pkgdesc="simple CPAN package extractor"
url="https://metacpan.org/release/Archive-Any-Lite/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-archive-zip"
makedepends="perl-extutils-makemaker-cpanfile perl-test-useallmodules"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/Archive-Any-Lite-$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="
40db0122a359d295459b3c146cb1a8b45cadc6bd678c05d9cf32f906e8b99a692c59efe5ca18a2ce05d0ab4b741affa8e7158b7f9cebc4232c4126970c93a890 Archive-Any-Lite-0.11.tar.gz
"