mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
# Automatically generated by apkbuild-cpan, template 3
|
|
# Contributor: Timothy Legge <timlegge@gmail.com>
|
|
# Maintainer: Timothy Legge <timlegge@gmail.com>
|
|
pkgname=perl-extutils-cppguess
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=ExtUtils-CppGuess
|
|
pkgver=0.26
|
|
pkgrel=0
|
|
pkgdesc="guess C++ compiler and flags"
|
|
url="https://metacpan.org/release/ExtUtils-CppGuess/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl perl-capture-tiny"
|
|
makedepends="perl-dev"
|
|
checkdepends="perl-capture-tiny perl-module-build"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/E/ET/ETJ/ExtUtils-CppGuess-$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
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
}
|
|
|
|
sha512sums="
|
|
35e8e11f7df5d4a2a306cbe1df7a879291cb041677c740d95fc228e8ee812a127be4c70bc2ae6b25d3e73de69e1796539dacf3bb0b1a3311de3dea588335a225 ExtUtils-CppGuess-0.26.tar.gz
|
|
"
|