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

testing/perl-parse-distname: new aport

This commit is contained in:
Wen Heping 2025-07-09 23:13:43 +00:00 committed by Celeste
parent 6836414ba5
commit 842928fe2d

View file

@ -0,0 +1,39 @@
# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-parse-distname
pkgver=0.05
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Parse-Distname
pkgdesc="parse a distribution name"
url="https://metacpan.org/release/Parse-Distname/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-extutils-makemaker-cpanfile"
checkdepends="perl-test-differences perl-test-useallmodules"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/Parse-Distname-$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="
57896ecf281a321bee0c9ab8b297cb651dae779eb5948ff09bb15e56918049b11902063cf11560ad781f9768f977e0db85a0c59b2e5975cbc5140faf9e5cb498 Parse-Distname-0.05.tar.gz
"