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

testing/perl-badger: new aport

This commit is contained in:
Wen Heping 2025-06-15 11:21:52 +00:00 committed by Celeste
parent 7061516ed8
commit 4520402c00

View file

@ -0,0 +1,37 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-badger
pkgver=0.16
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Badger
pkgdesc="Application programming toolkit"
url="https://metacpan.org/release/Badger/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AB/ABW/Badger-$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="
b80a1645cf363c98f489246149967663d1b6d4b4e68aee2c70b68b8e83a0324b77c195091eba5c6874e7515da3c3cb3ae02073e71e9fcab91ca6933783645bd2 Badger-0.16.tar.gz
"