mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
main/perl-extutils-hascompiler: new aport
Dependency of perl-cpan-requirements-dynamic
This commit is contained in:
parent
8b77a0d4aa
commit
720d5b1e42
1 changed files with 39 additions and 0 deletions
39
main/perl-extutils-hascompiler/APKBUILD
Normal file
39
main/perl-extutils-hascompiler/APKBUILD
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Automatically generated by apkbuild-cpan, template 4
|
||||
# Contributor: Celeste <cielesti@protonmail.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=perl-extutils-hascompiler
|
||||
pkgver=0.025
|
||||
pkgrel=0
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
_pkgreal=ExtUtils-HasCompiler
|
||||
pkgdesc="Check for the presence of a compiler"
|
||||
url="https://metacpan.org/release/ExtUtils-HasCompiler/"
|
||||
arch="noarch"
|
||||
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
||||
depends="perl"
|
||||
checkdepends="perl-dev"
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-HasCompiler-$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="
|
||||
d5560a22f43cdfb7900aeedf5780c08cec8e0761a5873fafec4018ebf872ae48adac02ad218f13d138d64a33365d34966f099b119ff14b7b6f8239708560c11d ExtUtils-HasCompiler-0.025.tar.gz
|
||||
"
|
Loading…
Reference in a new issue