1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/testing/perl-devel-findperl/APKBUILD
2025-06-08 13:11:21 +00:00

37 lines
1 KiB
Text

# Contributor: Wen Heping <wenhepingalpine@sohu.com>
# Maintainer: Wen Heping <wenhepingalpine@sohu.com>
pkgname=perl-devel-findperl
pkgver=0.016
pkgrel=0
# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Devel-FindPerl
pkgdesc="Find the path to your perl"
url="https://metacpan.org/release/Devel-FindPerl/"
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/L/LE/LEONT/Devel-FindPerl-$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="
9c225ebdc579645221c78c8284510452c8e93f6728b552ea507840b685caa649bb28f5167604e25e7cdfc5ba46430b3b2468d91ec0ef94246ed2f7fc3ded8ad9 Devel-FindPerl-0.016.tar.gz
"